[XviD-devel] *Ouch!* compiler option with Makefiles

Christoph Lampert xvid-devel@xvid.org
Thu, 24 Oct 2002 16:37:07 +0200 (CEST)


Hi,

I checked and in 6 Makefiles there is the optimization
level   -Os   for optimize for size (which automatically
activates -O2 for speed). 

The bad thing is: For me -Os is significantly slower than 
simple -O2 !


O2:   enc:    4.8 fps, dec:   53.5 fps

Os:   enc:    4.3 fps, dec:   40.8 fps


I started looking at this because I saw in a small memory benchmark 
that -Os gives results as bad as -O0, whereares the other have much better
values for memory access... :(((


I guess Gomgom, you switched to -Os. Is the situation vice versa on your
machine? 

gruel

gcc is 3.2 and CPU Mobile Pentium 3, 1 GHz, (PC100)

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 1002.280
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 mmx fxsr sse
bogomips        : 1998.84