Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: (PR#3515) Adding -O3 -fomit-frame-poiter with --enable
Home

[Freeciv-Dev] Re: (PR#3515) Adding -O3 -fomit-frame-poiter with --enable

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bursig@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3515) Adding -O3 -fomit-frame-poiter with --enable-debug=no
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Mon, 24 Feb 2003 11:54:59 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, Feb 24, 2003 at 08:09:39AM -0800, Rafa³ Bursig wrote:
> Dnia 2003.02.24 16:53 Raimar Falke napisa³(a):
> > On Mon, Feb 24, 2003 at 07:46:14AM -0800, Rafa? Bursig wrote:
> > >
> > > Hi
> > >
> > >   This code add -O3 -fomit-frame-pointer as default flags and turn
> > off
> > > debuging with --enable-debug=no setting. Default setting is still
> > > --enable-debug=some which give -g -O2 flags.
> > 
> > Why not -Os? I.e. can you show numbers for -O2, -O3, -Os and
> > -fomit-frame-pointer?
> > 
> 
> Per try it all.
> - with -fomit-frame-pointer He got little progres ( small but progres )
> - with Os He got game crash
> 
> About Os... I never try it but if it will be better that standart -Ox 
> then it will be default LINUX kernel flag and is not.

To back this up with some data. Configure without extra options.

$ size civserver_* | sort -n
   text    data     bss     dec     hex filename
 524524  137676  842784 1504984  16f6d8 civserver_icc7_O2
 530364  136364  842816 1509544  1708a8 civserver_icc7_ip
 553056   15996  833088 1402140  15651c civserver_Os
 553758  140456  847040 1541254  178486 civserver_icc6_O2
 664517   15992  833088 1513597  17187d civserver_O2_NDEBUG
 696831   15996  833088 1545915  1796bb civserver_O2
 702655   15996  833088 1551739  17ad7b civserver_O2_omit_fp
 715982  140168  847072 1703222  19fd36 civserver_icc6_ip
 741079   15996  833088 1590163  184393 civserver_O3
 747799   15996  833088 1596883  185dd3 civserver_O3_omit_fp
1130942  143176 1334628 2608746  27ce6a civserver_icc6_ipo
$ grep user *.out | sort -t":" +1
civserver_icc6_ipo.out:  389.99user 9.75system 6:59.11elapsed 95%CPU    73.10%
civserver_O3_omit_fp.out:463.41user 11.66system 8:17.89elapsed 95%CPU   86.86%
civserver_O3.out:        495.87user 11.40system 8:51.63elapsed 95%CPU   92.94%
civserver_icc6_ip.out:   496.07user 11.98system 8:55.78elapsed 94%CPU   92.98%
civserver_O2_omit_fp.out:496.97user 11.78system 8:53.61elapsed 95%CPU   93.15%
civserver_O2_NDEBUG.out: 505.36user 12.13system 9:04.51elapsed 95%CPU   94.72%
civserver_icc6_O2.out:   529.08user 13.06system 9:27.67elapsed 95%CPU   99.17%
civserver_O2.out:        533.51user 12.92system 9:27.91elapsed 96%CPU  100.00%
civserver_icc7_ip.out:   547.28user 13.32system 9:46.18elapsed 95%CPU  102.58%
civserver_icc7_O2.out:   567.12user 14.26system 10:06.69elapsed 95%CPU 106.30%
civserver_Os.out:        606.64user 14.30system 10:49.43elapsed 95%CPU 113.70%
$

ip is:
   -ip     enable single-file IP optimizations (within files)
i.e. inlining (comparable to -O3) and some more stuff.

ipo is
   -ipo    enable multi-file IP optimizations (between files)
i.e. inlining across files.

The size output of civserver_icc7_ip looks odd. No idea why.

You get almost the same numbers with -O3 and omit-fp as seperate
options.

-Os is no good.

icc 7.0 is no good.

icc doesn't have something similar to -fomit-frame-pointer AFAIK.

gcc doesn't have something similar to -ipo.

For completeness:

$ md5sum savegames/civserver_*/*+1995*
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_icc6_ip/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_icc6_ipo/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_icc6_O2/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_icc7_ip/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_icc7_O2/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  savegames/civserver_O2/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_O2_NDEBUG/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_O2_omit_fp/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  savegames/civserver_O3/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  
savegames/civserver_O3_omit_fp/civgame+1995.sav.gz
347695f47f48a3fda329bc61a916bf39  savegames/civserver_Os/civgame+1995.sav.gz

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "> WHY?! Isn't it better to put $(shell cat cscope.files) on the list of
  I only have a yellow belt in makefile kungfu.  These fancy gnu make things
  are relatively new to some of us..."
    -- Mark Frazer to Vassilii Khachaturov in linux-kernel




[Prev in Thread] Current Thread [Next in Thread]