From: Murx <chrisi@theo.physik.uni-stuttgart.de>
Subject: Re: gcc/egcs C optimization
Date: 1998/11/02 [thread overview]
Message-ID: <363D9504.8C88BEF8@theo.physik.uni-stuttgart.de> (raw)
In-Reply-To: slrn73qihg.dp0.conrad@hive.me.gu.edu.au
Conrad Sanderson wrote:
> Berk Sensoy <bas7@lemur.phy.duke.edu> wrote:
>
> > Does anyone have any suggestions as to what would be the best
> >compiler options to optimize (make the fastest at run-time) my code on an
> >Alpha/Linux machine? I have a
> >code that solves a biharmonic PDE by calling a Fortran subroutine. Our
> >group just acquired an Alpha/Linux and we are trying to figure out how
> >best to opimize its various capabilities vis-a-vis an Intel machine.
>
> -O3 -funroll-all-loops -fexpensive-optimizations
> (may need to add -mieee depending on how the code is written)
>
>
> Getting a decent math library will make the most difference:
>
> http://people.frankfurt.netsurf.de/Joachim.Wesner/
>
My favourite is:
g77 -O3 -funroll-loops -fno-schedule-insns -fschedule-insns2 -o foo.x foo.f
-lffm -lfm -lm
Our code yields a factor of three on a 533 Mhz linux alpha as compared to a
350 Pentium II,
both egcs-1.1b.
For a real fast code, you'll probably need to handoptimize the inner loops
(cache-blocking, and loop-unrolling by four helps a *lot*)
Christian
next prev parent reply other threads:[~1998-11-02 5:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-31 5:00 gcc/egcs C optimization Berk Sensoy
1998-11-02 5:00 ` Conrad Sanderson
1998-11-02 5:00 ` Murx [this message]
1998-11-03 5:00 ` Adam C. Powell, IV
1998-11-03 5:00 ` Greg Lindahl
1998-11-04 5:00 ` Steven G. Johnson
1998-11-04 5:00 ` C.Simmendinger
1998-11-04 5:00 ` Craig Burley
1998-11-04 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-05 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-05 5:00 ` Toon Moene
1998-11-06 5:00 ` C.Simmendinger
1998-11-06 5:00 ` C.Simmendinger
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox