Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Compile *nix programs faster multi-core Macs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compile *nix programs faster multi-core Macs
Authored by: janl on May 25, '07 07:56:23AM

A few additions, -j 2/3 also can help on single-core/cpu machines because the CPU doesn't have to wait for disk reads and writes in between compiling files. Because of that, it is usually recommended to set n to cores/CPUs +1

On the other hand, not all buildchains allow parallel job execution, so if your make fails, retry without the -j option.

If you run make more than once, installting ccache speeds things a lot. For additional kicks, you can put the ccache dir on a ramdisk, if you've got some spare ram.

At last, distcc utilizes machines on your network to outsource compile jobs, just like XCode does.

Cheers,
Jan
--



[ Reply to This | # ]