User forums > Using Code::Blocks

ubuntu C::B questions

<< < (3/6) > >>

mandrav:

--- Quote from: Game_Ender on March 05, 2006, 09:07:33 am ---By presuming that CB build system is slower than make I am not trying to insult codeblocks.

--- End quote ---

I didn't take it as such :)
But I happen to know the inner workings of C::B build system really good. I know the exact differences it has with make. The only bottleneck for C::B is the actual logging. It's logging in a wxTextCtrl whatever this means in terms of speed. But even so, I think it's still faster than running make from the command line.

And don't forget: C::B used to use make too. Guess why it was dropped in favor of the new build system ;) (yes, I had run speed tests).

Game_Ender:
Well on my machine for a full build I get the following:

Full Build:
Make: 8:34
CB: 4:28

Code::Blocks is the winner.  That is awsome, why is CB so fast on the full builds?  Are the auto make files inefficient, it does look like they throw a little more info at the compiler.  Are the auto tools scripts use precompiled headers?  I am going to do incremental builds next.

For these after the full build I changed one line in cbeditor.h, and then built them again.
Incremental:
CB: 3:16
Make: Not Done Yet

mandrav:

--- Quote from: Game_Ender on March 05, 2006, 09:46:45 am ---Are the auto make files inefficient, it does look like they throw a little more info at the compiler.  Are the auto tools scripts use precompiled headers?

--- End quote ---

Yes, they do use precompiled headers (as long as your compiler supports them and you didn't pass --disable-pch in configure).
But, note that the PCH created by C::B cannot be used by make and vice-versa. Maybe you didn't notice it and make didn't use the PCH?

mandrav:
OK, here are the results:


uname -a
Linux amd64 2.6.12-10-amd64-generic #1 Mon Feb 13 12:14:05 UTC 2006 x86_64 GNU/Linux

Make build:
-----------
make clean
./configure --enable-contrib=no --prefix=/usr
time make

real    9m17.087s
user    6m31.024s
sys     1m19.279s

C::B full rebuild (added "-O2 -ffast-math" in project to match make options):
------------------------------------------------------------------
Process terminated with status 0 (8 minutes, 40 seconds)
0 errors, 19 warnings

C::B full rebuild ("stock" project options):
------------------------------------------------------------------
Process terminated with status 0 (4 minutes, 40 seconds)
0 errors, 8 warnings


As you see, C::B is in fact faster than make but not as much as your tests showed (probably due to the PCH issue I pointed out).

thomas:

--- Quote from: Takeshi Miya on March 05, 2006, 01:28:19 am ---If you're going to test it, just make sure to disable all plugins except the Compiler plugin (CodeCompletion esp. is known to make the build slower).
--- End quote ---
Your tips amaze me every day anew... :lol:


--- Quote from: mandrav ---added "-O2 -ffast-math" in project
--- End quote ---
Good catch :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version