Apple's implementation of precompiled headers

Daniel Berlin dan@cgsoftware.com
Sat Sep 29 08:49:00 GMT 2001


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



More information about the Gcc mailing list