This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Precompiled headers (or other speed ups)



----- Original Message -----
From: <dewar@gnat.com>
To: <gcc@gcc.gnu.org>; <pedwards@disaster.jaj.com>
Sent: Thursday, January 11, 2001 1:35 AM
Subject: Re: Precompiled headers (or other speed ups)


> <<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.
>
>
I agree with you. Lex and Yacc generate pretty rapid C code.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]