Leverage Dual CPU's with GNU Make

May 03, '04 09:35:00AM

Contributed by: Anonymous

Users who build open source software from source (aka the configure; make; make install method) on dual CPU Macs can take advantage of the the second CPU by adding -j 2 as an argument to the make command. The -j 2 argument tells make to compile two source files at the same time for the duration of the build, with each source file being compiled by one of the processors.

[robg adds: Although this option is listed in the man page, it's not at all clear that it will use the second processor for the additional job...]

Comments (15)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040429144637414