gcc4 and xmame

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.
 
G

Guest

Guest
Archived from groups: alt.games.mame (More info?)

innocent_lamb a écrit :
> 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.

And it's just the beginning, the real optimization work will in GCC 4.1.x

--
Laurent Raufaste
analogue @ http://www.glop.org/
Votez OUI !
 
G

Guest

Guest
Archived from groups: alt.games.mame (More info?)

analogue played the following on an explodable self-inflating leather and
concrete saxophone

> innocent_lamb a écrit :
>> 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.
>
> And it's just the beginning, the real optimization work will in GCC 4.1.x

Good thing too! Pacman at only 645fps is intolerable! Why it's practically
a slideshow!
 
G

Guest

Guest
Archived from groups: alt.games.mame (More info?)

On Sun, 24 Apr 2005 11:29:06 -0600, innocent_lamb wrote:
>
> 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.

funny that you spend all the post setting up that larger file sizes, and
then call the speed increase "free". :)
 

sinner

Distinguished
Dec 31, 2007
968
0
18,980
Archived from groups: alt.games.mame (More info?)

* Captain Rotundo wrote in alt.games.mame:
> On Sun, 24 Apr 2005 11:29:06 -0600, innocent_lamb wrote:

>> 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.

> funny that you spend all the post setting up that larger file sizes, and
> then call the speed increase "free". :)

He *spent* the time so *we* could have it *free* :)
--
David
To the systems programmer, users and applications serve only to provide a
test load.
 
G

Guest

Guest
Archived from groups: alt.games.mame (More info?)

On Mon, 25 Apr 2005 23:00:02 +0000, SINNER wrote:

> * Captain Rotundo wrote in alt.games.mame:
>> On Sun, 24 Apr 2005 11:29:06 -0600, innocent_lamb wrote:
>
>>> 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.
>
>> funny that you spend all the post setting up that larger file sizes, and
>> then call the speed increase "free". :)
>
> He *spent* the time so *we* could have it *free* :)

lovely.