User forums > Using Code::Blocks

CodeBlocks and dual core for compilation

(1/1)

wxuserbrest:
Hi,
when i use a makefile i can do make -j 3 to compile 3 files at the same time as i have a dual core. But when i compile with codeblocks (without makefile as i never tried makefile with codeblocks) it seems that only one file is compile at the same time. Is there a place to ask codeblocks to compile more file at the same time ?
Thanks

JGM:
Here you go:

Settings->Compiler and debugger->Global compiler  settings->Other settings->Number of processes for parallel build

matioupi:
Hello,

is there a particular reason to set 3 if you have a duel core ? Why don't you set just 2 ?

Regards

thomas:

--- Quote from: matioupi on August 03, 2008, 11:14:14 pm ---is there a particular reason to set 3 if you have a duel core ?
--- End quote ---
Yes, on most systems, performance is better with an extra process. Depending on your configuration (system RAM and hard disks), even two extra processes are benefitial.
Having an extra process causes a few more context switches, but on the positive side, it greatly increases parallelism and hides latencies.

matioupi:
Thank you, i've always been using 2 process on a dual core... and that's true there is a little gain at 3 and even at 4 process !
(but the machine is then unuseable for anything else... get totaly stucked at its hard work !)

Navigation

[0] Message Index

Go to full version