User forums > Using Code::Blocks

CB perf

<< < (2/2)

gd_on:
I use svn 8055 too and the option is there.
For example for gcc compiler :
Menus Settings / Compiler ... select "GNU GCC Compiler" and in the tabs just under select "Build options" and set the "Number of processes for parallel builds" to the value you want.

gd_on

Jenna:
It is definitely there, you might click on the right arrow next to the most right tab to see it.

For the make parameters, try make --help. 3.81 is recent enough to have the "-j" switch.

LarsPensjo:

--- Quote from: jens on June 16, 2012, 08:24:47 pm ---It is definitely there, you might click on the right arrow next to the most right tab to see it.

--- End quote ---
Found it. I don't know, I am going blind or something. Thanks!

ouch:
In linux you also have a -L option for make. This keeps your system under a specific load average. The advantage here is that you can specify like a max threads of 10 (with -j) for example and make will use 10 if it needs to raise the load average and then use less as the load average gets too high. this can make things compile faster in some cases, but it's main advantage is that if the system decides to do something, or you have a task scheduled cron job. make will throttle itself down to let that task continue and not cram the system full of processing tasks paralyzing it effectively making compile time much longer.

You may also want to look into the -k option, it forces the compiler to compile what it can if it encounters an error. This can be a time saver if you have an error that you later fix, this way you might not have to compile from scratch all over again.

I have a little atom processor server so I try to optimize the crap out of whatever it's doing. lol

Navigation

[0] Message Index

[*] Previous page

Go to full version