On 14/02/14 09:42, Jean-Marc Lasgouttes wrote: >> To compile with two cores, use >> make -j2 > > Actually, I find -j3 to be a bit better, maybe because there is less idle > time.
yes, while one gcc process suspends for disk access (reading sources or writing compiled objects), there's another one ready to process that can be scheduled on its CPU, so overall compilation finishes earlier. And sometimes even -j4 may go better on a dual-core. It's only a pity that the linker doesn't take advantage of this, AFAICR this is the only boring forcibly sequential phase that takes quite long, no matter if you have a 48-cores below you. T.