This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Apple's implementation of precompiled headers
- To: dewar at gnat dot com
- Subject: Re: Apple's implementation of precompiled headers
- From: Stan Shebs <shebs at apple dot com>
- Date: Sat, 29 Sep 2001 05:52:39 -0700
- CC: degger at fhm dot edu, gcc at gcc dot gnu dot org
- References: <20010929124226.176D6F2BA0@nile.gnat.com>
dewar@gnat.com wrote:
>
> I am amazed that precompiled headers could make a difference for C, it should
> be easily possible to parse and compile C headers faster than you can read
> them from disk.
You shouldn't be that amazed, I reported the experimental results
last year. If you want fast compilation of programs with huge
headers (for Macs the round number is 100K lines of header pulled
in per source file), you have to have the set of declarations in
memory and available for random access by name. Parsing, compiling,
reading from disk, all of them take too long.
Stan