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: Apple's implementation of precompiled headers


dewar@gnat.com writes:

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


-- 
"I hate it when my foot falls asleep during the day because that
means it's going to be up all night.
"-Steven Wright


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