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: dewar at gnat dot com, dkorn at pixelpower dot com
- Subject: RE: Precompiled headers (or other speed ups)
- From: dewar at gnat dot com
- Date: Wed, 10 Jan 2001 12:28:46 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org
<< Well, only really surprising if you assume the parsing code is well
written :-) After all, the mid/backend is mostly doing memory-memory
transforms on the trees, and that's going to run as fast as your cache
and cpu can handle. Parsers, OTOH, have to I/O. Badly written parsers
might even use c stdio functions to fgetc the entire file one char at a
time....
>>
Sure, but that presumably is an easy thing to fix. In GNAT, the entire
file is read with a single read, and then all access to the file is to
the in memory copy, which stays around throughout the compilation.