Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] C Preprocessor optimalization

C/C++ is not Java, the C file does not represent something that can be parsed by C/C++ parser without huge investment in error recovery and dis-ambiguity heuristics. So if you don't have header files the result will be almost useless. You can do something like c-tags (as Joseph pointed out), 
with some regex/fuzzy parser and you can
get maybe 80% of C and a lot less of C++ (but you need headers too). 
You also should consider taking a course on construction of compilers before you attempt this. 


On Wed, Jul 2, 2014 at 2:35 AM, <guta@xxxxxxxxxx> wrote:
Hi,

   We are interested in contributing to CDT as we are facing a performance problem, which seems to be a serious issue for our project. We are using CDT to work with a code which includes extremely large header files and they causing problem. Can you provide us some hint on how much effort would be to make the preprocessor part more memory efficient? How complicated to make capable the function getAST to work on code fragments and not only on complete translational units?

Thank you for your answer in advance!

KR, Gabor



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top