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: dan at cgsoftware dot com, dewar at gnat dot com
- Subject: Re: Apple's implementation of precompiled headers
- From: dewar at gnat dot com
- Date: Sat, 29 Sep 2001 12:10:32 -0400 (EDT)
- Cc: degger at fhm dot edu, gcc at gcc dot gnu dot org, shebs at apple dot com
<<In actuality, it's not.
This is because expansion to rtl gets counted in the parse cost, and
it's expensive.
With precomp'd headers as serialized trees, you don't need to
re-expand (assuming you serialize DECL_RTL as well).
>>
Of course you do not need to convert declarations to rtl unless they are
used, i.e. you can do it on demand, that's what we do with Ada specs, the
declarations are converted to rtl on demand (at least that's my understanding
of what we do, it is not the area of GNAT I know well, and if we are not
doing it we should be doing it :-)