G
Guest
Guest
Archived from groups: alt.games.mame (More info?)
Some of you may be interested in this message which was posted to the
xmame list last night:
Subject: [Xmame] GCC4 xmame benchmarks
I have been playing around with the "Preview of GCC version 4.0" for
Fedora Core 3 and thought you lot might be interested in my findings.
This computer is an Intel P4/2.4 with 1mb of ram. It runs Fedora Core 3
with all current updates. Kernel version 2.6.11-1.14_FC3.
For testing, I compiled xmame 0.95 using the out-of-the-box makefile.unix
with no further changes or optimizations other than changing the compiler
to gcc4 of course.
Time to compile with GCC 3.4.3
real 15m57.606s
user 14m25.467s
sys 0m41.458s
Time to compile with GCC 4 "preview"
real 19m16.969s
user 18m9.633s
sys 0m45.569s
Executable size:
GCC4 34096176 Apr 24 01:05 xmame.x11
GCC3.4.3 36943076 Apr 24 00:41 xmame.x11
Interestingly enough, this:
#include <stdio.h>
main()
{
printf("hello world\n");
}
compiles to 4738 bytes with GCC4 but only 4730 bytes with GCC 3.4.3.
There must be slightly more "standard overhead" with GCC4, but that
appears to be made-up-for with a less trivial program.
xmame.x11 pacman
GCC 3.4.3 runs at 1070% 645fps
GCC 4 runs at 1095% 660fps
It looks like we get a bit of "free speed" out of GCC4.
Some of you may be interested in this message which was posted to the
xmame list last night:
Subject: [Xmame] GCC4 xmame benchmarks
I have been playing around with the "Preview of GCC version 4.0" for
Fedora Core 3 and thought you lot might be interested in my findings.
This computer is an Intel P4/2.4 with 1mb of ram. It runs Fedora Core 3
with all current updates. Kernel version 2.6.11-1.14_FC3.
For testing, I compiled xmame 0.95 using the out-of-the-box makefile.unix
with no further changes or optimizations other than changing the compiler
to gcc4 of course.
Time to compile with GCC 3.4.3
real 15m57.606s
user 14m25.467s
sys 0m41.458s
Time to compile with GCC 4 "preview"
real 19m16.969s
user 18m9.633s
sys 0m45.569s
Executable size:
GCC4 34096176 Apr 24 01:05 xmame.x11
GCC3.4.3 36943076 Apr 24 00:41 xmame.x11
Interestingly enough, this:
#include <stdio.h>
main()
{
printf("hello world\n");
}
compiles to 4738 bytes with GCC4 but only 4730 bytes with GCC 3.4.3.
There must be slightly more "standard overhead" with GCC4, but that
appears to be made-up-for with a less trivial program.
xmame.x11 pacman
GCC 3.4.3 runs at 1070% 645fps
GCC 4 runs at 1095% 660fps
It looks like we get a bit of "free speed" out of GCC4.