User forums > Using Code::Blocks

CB perf

(1/2) > >>

grahamo:
Hi,

I have to say I'm delighted with the setup... Codeblocks compiles our 30 .a's/.so's and links our exe perfectly. It runs perfectly under the debugger. Its compilation time is *five* times faster than the monolithic make system.

I've configured codeblocks to use dependencies and I've set the "Number of processes for parallel builds" to 8 (the number of CPU's on our linux server host where I compile). Our linux host is not loaded with other users.

Now I'm delighted with the setup and people are going to be delighted with the performance. However seeing as I'm a newbie I might as well ask...

Is there  any other way to speed up my build. I might naively expect codeblocks to compile 8 times faster than the monolithic make, seeing as its configured to run on 8 cpus versus the old monothreaded makefile approach.

Am I dreaming? Or is there another area I should look at to bleed another bit of performance out of CB.  FYI html logging is disabled and running from the compile line has been tested. It gives me a tiny perf improvement but I'm looking for tips from the pro's here: )

Again, nice job. Its been a while since I've used an IDE that runs as smoothly (and I've used just about all of them over the years! :)

MortenMacFly:
Fastest way is to use batch build mode with all plugins (except compiler, of course) disabled. Leave the rest as you did.

LarsPensjo:

--- Quote from: grahamo on April 21, 2011, 08:42:32 am ---...and I've set the "Number of processes for parallel builds" to 8 (the number of CPU's on our linux server host where I compile).

--- End quote ---

I have searched a lot for this, but I can't find where you configure it?

Jenna:

--- Quote from: LarsPensjo on June 16, 2012, 01:16:47 pm ---
--- Quote from: grahamo on April 21, 2011, 08:42:32 am ---...and I've set the "Number of processes for parallel builds" to 8 (the number of CPU's on our linux server host where I compile).

--- End quote ---

I have searched a lot for this, but I can't find where you configure it?

--- End quote ---
"Settings -> Compiler ...|Compiler and debugger -> your-compiler -> Build options|Other settings"
Which part of the logical or ("|") you need, depends on the version of C::B you use.

By the way:
recent versions of make have the "-j" switch to set the number of parallel processes.

LarsPensjo:

--- Quote from: jens on June 16, 2012, 03:53:52 pm ---
--- Quote from: LarsPensjo on June 16, 2012, 01:16:47 pm ---
--- Quote from: grahamo on April 21, 2011, 08:42:32 am ---...and I've set the "Number of processes for parallel builds" to 8 (the number of CPU's on our linux server host where I compile).

--- End quote ---

I have searched a lot for this, but I can't find where you configure it?

--- End quote ---
"Settings -> Compiler ...|Compiler and debugger -> your-compiler -> Build options|Other settings"
Which part of the logical or ("|") you need, depends on the version of C::B you use.

By the way:
recent versions of make have the "-j" switch to set the number of parallel processes.

--- End quote ---
Thanks! I am using version 8055, and there is no "Compiler and debugger" setting. There is one for the compiler and one for the debugger, but neither includes this option. I suppose this has been moved elsewhere?

I am running Ubuntu 12.04, with:

--- Code: ---$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-linux-gnu

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version