This is the mail archive of the
mailing list for the GCC project.
Re: Precompiled headers (or other speed ups)
- To: <dewar at gnat dot com>,<gcc at gcc dot gnu dot org>,<pedwards at disaster dot jaj dot com>
- Subject: Re: Precompiled headers (or other speed ups)
- From: "Yu Xuanwei" <yxw at chinacluster dot com>
- Date: Thu, 11 Jan 2001 10:43:13 +0800
- References: <20010110173526.2167634E40@nile.gnat.com>
----- Original Message -----
To: <email@example.com>; <firstname.lastname@example.org>
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
> 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.