News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CodeBlocks and dual core for compilation

Started by wxuserbrest, August 02, 2008, 04:42:46 PM

Previous topic - Next topic

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
--
[url="http://www.incub.net/"]http://www.incub.net/[/url]

thomas

Quote from: matioupi on August 03, 2008, 11:14:14 PMis there a particular reason to set 3 if you have a duel core ?
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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

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 !)
--
[url="http://www.incub.net/"]http://www.incub.net/[/url]