Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Lev D Gelb <gelb@cheme.cornell.edu>
Subject: Re: Compiler speed for floating point applications.
Date: Fri, 13 Jun 1997 09:28:56 -0400 (EDT)	[thread overview]
Message-ID: <7504790569cc6c6e7df317dffed93d02.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.OSF.3.95.970613151538.20962A-100000@alf.nbi.dk>

On Fri, 13 Jun 1997, Ken Haste Andersen wrote:
> I have a 500 MHz PC164. I run floating point intensive calculations
> compiled with g77 (-ffast-math -funroll-loops -fno-f2c -O3). These run
> approx 2 times the speed of a 180 MHz Ppro, which is a bit slower that
> what is to be expected. Therefore I tried to compile the programs under
> Digital Unix, using their f77 compiler (-O4 -arch ev5), and transfering
> the code to my Linux station. Surprise! - a factor of two in speed
> increase!
> 
> Is g77 (and then gcc) really that bad for floating point apps.?
> 
> Ken
> 
> -----------------------------------------------------------------------

I did the same thing with a 433 MHz PC164, and my own 
floating-point intensive code.  I found that g77-optimized
code ran at about 85% the speed of DEC-f77-optimized code
(and nearly twice the speed of f2c+gcc optimized code!).

I think that these kinds of compiler performance questions are
very dependent on the program involved.  
(BTW, my compiler options for g77 were 
"FFLAGS = -ff77 -ffast-math -O2 -C", and for DEC f77 the same
as yours, except with the "statically linked" option.

Lev Gelb

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-06-13 13:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.OSF.3.95.970613151538.20962A-100000@alf.nbi.dk>
1997-06-13 13:28 ` Lev D Gelb [this message]
1997-06-13 15:35 ` Compiler speed for floating point applications Michal Jaegermann
1997-06-13 13:21 Ken Haste Andersen
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