Tip: Compiling on multiple processors

March 11, 2008

So let’s say your computer has more than one processor in it. I bet you would like to take advantage of that capability wouldn’t you? Especially when you are compiling something like openoffice.org (May as well shoot yourself in the foot while you’re at it!).

So here is the dealio. All you need is a little ‘-j <#cpu>’ option. You should take note though that the number is your number of processors PLUS 1.

Eg: 2 processor system
-j 3

4 processor system
-j 5

And so on. You found this tip so I am guessing you are smart enough to be able to figure out what number you need.