Re: Speeding up compiling and linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: <gcc-help@xxxxxxxxxxx>
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/
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux