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 [mailto:dewar@gnat.com]

><<was posted in last August, but there is a good example of how the parser
>can dominate just about everything.  That message kicked off a very good
>discussion on precompiled headers and parsing performance in C++.
>>.
>
>This is quite surprising, depending on what parsing means, if parsing
>means just building a syntax tree from the grammar, it is amazing that
>this should take any time at all compared to other phases.

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

    cheers, 
       DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community."


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

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