Precompiled headers (or other speed ups)

dewar@gnat.com dewar@gnat.com
Wed Jan 10 09:35:00 GMT 2001


<<Perhaps in Ada parsing only takes microseconds.  In most of the C-family
languages with which I am familiar, parsing takes the majority of the time.
>>

If by parsing you mean lexical analysis and construction of the syntax
tree (NOT including static semantic analysis), then this should be very
rapid. There is nothing especially difficult about C or C++ with respect
to lexical analysis and parsing.

If the static semantic analysis is taking a lot of time, perhaps there
are some non-optimal algorithms that need looking at. I do not see why
C++ should be significantly harder to handle than Ada 95 in this regard.



More information about the Gcc mailing list