Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: korDen on October 22, 2008, 01:25:35 pm
-
Does C::B support running multiple compilation processes in parallel, similar to Gentoo MAKEOPTS flag? With my current settings, C::B compiles on file at a time and this is suboptimal nowadays. Compiling multiple files in parallel would decrease compilation time up to 2 times for dual core and up to 4 time for quad core processors. I think it is a nice feature to have. Thank you
-
Does C::B support running multiple compilation processes in parallel,
Yes: Settings -> Compiler and Debugger -> [select your compiler] -> Tab "Other settings" -> Choose "number of processes..."
The question is whether the compiler framework supports it. I once tried with VC6 and it produced very strange errors utiul I realised it was a problem with the multiple processes.
-
I use MinGW/gcc with 5 compile processes on a quadcore, which works just fine and is the sweet spot for my system. This leaves about 10-12% of idle CPU time, because writing out object files starts making the build process I/O bound.
What does not work, funnily, is compiling makefiles with -j 5, although make has been supporting this for much, much longer and should be much, much more mature than Code::Blocks. However, make regularly messes up with several processes, whenever it has to prepare a file that's used later.
-
I use MinGW/gcc with 5 compile processes on a quadcore
Braggart! :lol:
...you know how to make other devs jealous, right?! :cry:
-
How jealous will Yiannis be if I tell him my TV runs on Linux...
-
How jealous will Yiannis be if I tell him my TV runs on Linux...
:lol: