Precompiled headers (or other speed ups)
Rob Taylor
robt@flyingpig.com
Tue Jan 9 03:01:00 GMT 2001
> Of course it is always worth smoking out bottlenecks, but I find the
> compilation performance you report not unreasonable. Why on EARTH do
> you have a single source file this long -- sounds like simply awful
> programming style???
>
preprocessed source this size is a pretty common occurence with c++ code of any
size, in my experience. just include a couple of libraries and you're there. I
know our code takes donkeys to compile with gcc -- on MSVC a complete recompile
of our tree takes 15-20 mins. On gcc it takes at least 4 hours! (these times
both in 128Mb 500 Mhz PIII's) A major problem I see is that compilation time for
gcc is non-linear to the size of the source. precompiled header would probably
help these problems sizably.
Rob
More information about the Gcc
mailing list