precompiled header

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Sun Mar 26 09:44:01 UTC 2006


hi

why fbsd dont use precompiled headers during buildword/buildkernel? I just did
very naive test (which doesnt work for a lot of the headers)

cd /sys; find . -name \*.h -exec gcc -x c-header {} \;

time buildkernel

and delete those compiled headers and time buildkernel again

there is a speedup for the precompiled-headers case (but not very big) and I am sure if it 
was carefully integrated into the build (ie. compiling all headers) the
difference might be quite visible...

thnx

roman



More information about the freebsd-hackers mailing list