delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/14:33:54

From: e DOT d DOT k DOT i DOT s DOT e DOT r AT j DOT a DOT x DOT n DOT e DOT t DOT c DOT o DOT m (M. Edward Kiser)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Precompiled headers.
Date: Sat, 21 Jun 1997 19:09:52 GMT
Organization: Southeast Network Services, Inc.
Lines: 28
Message-ID: <5ohboi$h1r@news.southeast.net>
References: <5oe8hq$25a AT lion DOT cs DOT latrobe DOT edu DOT au> <33AAD839 DOT 34ED AT cs DOT com>
Reply-To: e DOT d DOT k DOT i DOT s DOT e DOT r AT j DOT a DOT x DOT n DOT e DOT t DOT c DOT o DOT m
NNTP-Posting-Host: ts10-022.southeast.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"John M. Aldrich" <fighteer AT cs DOT com> wrote:

>Gregary J Boyles wrote:
>> 
>> Does DJGPP have them?

>What are they?  And why would you want them?  Headers get inserted into
>your code by the preprocessor and compiled along with the rest of your
>program.  I'm afraid that I don't understand what you're asking.

To answer the second question, pre-"compiled" headers are actually
pre-PARSED headers. To generate a pre-"compiled" header file, the
compiler dumps its symbol table after parsing the header files; to use
it, the compiler merely reads this symbol table back in instead of
parsing the header files again. Obviously, this is only useful if you
have a lot of CPP files that #include the SAME headers in the SAME
order. But many programs do this, especially with large complicated
header files like windows.h, the Standard Template Library, or any
large windowing framework such as SWORD or OWL. Pre-compiled headers
can speed things up a LOT.

To answer the first question, DJGPP does not have them, but I think
they would be a very nice addition to GCC on ALL platforms.
--------
Ed Kiser ( e d k i s e r @ s o u t h e a s t . n e t )
"The man who does not read good books has no advantage over
the man who can't read them." -- Mark Twain

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019