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)


<<  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.

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