True! The same applies also to GNU C++ and MICO as a testing base. In fact every compiler from the 3.2, 3.3, 3.4, 4.0 set is faster than previous line.

Well, 4.0.x is really fast! Only Intel's C++ and Sun's C++ are faster (comparison made on linux and on solaris) when optimization is switched off, but completely lose the fight when optimization is switched on, this means: gcc generates faster code faster in both cases!

Once 4.1 is branched out, I'm ready to do some meassurements, since so far what I've seen 4.1 was a bit (really just a bit) slower than 4.0.

So thanks to all GCC developers for excellent work provided!
Karel

On Thu, 3 Nov 2005, Joe Buck wrote:

Many of us worry about the compiler getting slower over time, so I
was pleased to see a bit of good news from Planet Debian.

Norbert Tretkowski reports on his blog at

http://www.inittab.de/blog/2005/11/03#20051103_gcc33vs40 :

Comparing gcc 3.3 and 4.0

Kernel 2.6.14 builds fine with gcc 4.0 on alpha, so I switched the build
 system of the Debian linux-2.6 package from gcc 3.3 to gcc 4.0 on
 alpha. And it seemed that gcc 4.0 is much faster when building the
 kernel. I started two new builds using time(1), one with gcc 3.3 and one
 with gcc 4.0.

Using gcc 3.3.6: 56692.17s user 2784.40s system 97% cpu 16:54:01.65 total
Using gcc 4.0.2: 39189.33s user 2417.85s system 96% cpu 11:57:52.48 total

5 hours less... and the kernel still works fine.



--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com

Reply via email to