This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Speeding up compiling and linking
- From: "Stuart Brooks" <stuartb at cat dot co dot za>
- To: "Vishnu Mahadevan Menon" <vishnu_m_menon at yahoo dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Thu, 24 Mar 2005 12:20:02 +0200
- Subject: Re: Speeding up compiling and linking
- Organization: Intervid Technologies
- References: <20050324101040.47674.qmail@web42203.mail.yahoo.com>
We've used tools like ccache and distcc to good effect on NetBSD, probably
halving our average compile times on a code base of a million lines or so.
I'm not sure if you can use those under Windows or not, but Linux should
support them.
NB. distcc allows distributed compilation if you have a few free machines
lying around, and ccache caches object files based on a hash of the
preprocessed source to reduce unnecesasry recompilation (useful if you do a
lot of make cleans). They both improve compilation speed but not linking.
----- Original Message -----
From: "Vishnu Mahadevan Menon" <vishnu_m_menon@yahoo.com>
To: <gcc-help@gcc.gnu.org>
Sent: Thursday, March 24, 2005 12:10 PM
Subject: Speeding up compiling and linking
> Hello all.
>
> The application I'm working on is of a decent size -
> nearly 0.5 million lines of C++ code - and compiling
> and linking is simply a *pain*. We build for both
> Windows and Linux. On Windows we use Incredibuild
> (from Xoreax)/VC++, and on Linux, Teambuilder/gcc.
>
> What are some of the techniques you use to speed up
> linking and compilation times? I seem to run into
> tricks like using shared libraries, forward
> declarations etc., but it'd be great to have a clear
> view of the major options available before embarking
> on a major code rearranging exercise.
>
> Thanks in advance to those who'll respond!
>
> Best regards,
> Vishnu.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>