This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Precompiled headers (or other speed ups)
- To: dkorn at pixelpower dot com, zackw at stanford dot edu
- Subject: Re: Precompiled headers (or other speed ups)
- From: dewar at gnat dot com
- Date: Wed, 10 Jan 2001 14:45:19 -0500 (EST)
- Cc: dewar at gnat dot com, gcc at gcc dot gnu dot org
<<I don't know enough about C++ or its implementation in GCC to say for
sure what the ultimate cause is. I've been told that C++ has an
extremely ambiguous grammar and the parser has to accumulate entire
statements on the stack before it can begin to match anything.
There's an ad-hoc layer in between the lexer and the parser
(cp/spew.c) whose purpose is to rearrange the order in which certain
constructs appear so they are easier to parse; you can imagine the
mess that would require that.
>>
Sounds to me like the new Code Sourcery project to redo the parser has
the potential for good gains here.