reduce compilation times?

John Love-Jensen eljay@adobe.com
Tue Nov 27 13:48:00 GMT 2007


Hi mahmoodn,

> Is it possible to reduce compilation time with GCC?

Yes.

Besides the approaches that Andrew pointed out, there is also having good
source code hygiene, with low coupling and high cohesion, and having the
#include statements only include that which is needed in the translation
unit, and relying on header-header files.

Details of which -- and a lot more good stuff -- is in this book:

Large-Scale C++ Software Design
by John Lakos
http://www.amazon.com/dp/0201633620/

HTH,
--Eljay



More information about the Gcc-help mailing list