PDA

View Full Version : Using MAKEOPTS)"-j2" makes compilation time shorter ?



FredB
October 23rd, 2007, 07:06 PM
I was browsing the gentoo manual and I saw something about a strange optimization flag.

Besides -O2 which I try to use for my compilations, I learn about MAKEOPTS flag.

Is this flag make compilation time for big project shorter ?

If I understand well, I have to do a export MAKEOPTS="-j2" for a single core CPU ?

Any feedback ?

Thanks a lot !

CRAY-4
November 16th, 2009, 02:20 AM
i believe that is right, im doing j3 sine i have dual core

slavik
November 16th, 2009, 02:32 AM
for make -j specifies the number of max concurrent jobs that make will try to use. Usually should 1 more than the number of cores (to completely fill the ready queue). Although I have seen compilation fail where -j >1 was involved.