Squeak build problem...

Ned Konz ned at bike-nomad.com
Fri Aug 16 16:11:12 UTC 2002


On Thursday 15 August 2002 10:13 pm, Ian Piumarta wrote:
> On Thu, 15 Aug 2002, Ned Konz wrote:
> > On Thursday 15 August 2002 12:43 pm, Joshua 'Schwa' Gargus wrote:
> > > I recently built a VM with gcc-3.2, and had similar results.
> >
> > So what are you using for optimization flags?
> >
> > Perhaps the
> > -O2 -funroll-loops
> >
> > isn't enough...
>
> Woah, that's missing the single most important one!

No, see below.

> > I used this once and got pretty good results:
> >
> > make XCFLAGS="-fexpensive-optimizations -funroll-loops
> > -malign-functions=4
>
> -malign-loops can help too (if you don't want to unroll them all)

OK...

> > -O3 -march=athlon -mcpu=athlon -fschedule-insns2
> > -fno-gcse
>
> -fomit-frame-pointer is *the* critical one. 

That's already in the Makefile, in CFLAGS.
The above was in XCFLAGS, which comes after CFLAGS in the gcc command 
line:

CFLAGS= -I/usr/X11R6/include -g -O2 -fomit-frame-pointer -DLSB_FIRST=1
gcc $(CFLAGS) $(XCFLAGS) ...

> -fdefer-pops sometimes
> helps too.

So Joshua should try all of:

make XCFLAGS="-fexpensive-optimizations -funroll-loops 
-malign-functions=4  -O3 -march=athlon -mcpu=athlon -fschedule-insns2  
-fno-gcse"

make XCFLAGS="-fexpensive-optimizations -funroll-loops 
-malign-functions=4  -O3 -march=athlon -mcpu=athlon -fschedule-insns2  
-fno-gcse -malign-loops"

make XCFLAGS="-fexpensive-optimizations -funroll-loops 
-malign-functions=4  -O3 -march=athlon -mcpu=athlon -fschedule-insns2  
-fno-gcse -fdefer-pops"

make XCFLAGS="-fexpensive-optimizations -funroll-loops 
-malign-functions=4  -O3 -march=athlon -mcpu=athlon -fschedule-insns2  
-fno-gcse -malign-loops -fdefer-pops"

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list