Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: compiler efficency
Date: Mon, 27 Jan 97 22:48:56 +0100	[thread overview]
Message-ID: <9701272148.AA07214@moene.indiv.nluug.nl> (raw)

Lev D Gelb <gelb@cheme.cornell.edu> wrote:

>  I have found similar problems between f2c+gcc and DEC
>  f77, that DEC f77 is 2x as fast as the converted code.
>  I believe that there is something terribly slow in the
>  libf77 that comes with f2c, because people in our group
>  have benchmarked gcc vs DEC cc on numerical C-codes, and
>  found only a 10-20% slowdown with gcc.
>
>  Eagerly awaiting g77 version 0.5.20, which should have
>  Alpha support...

Hmm, haven't seen anything by Craig yet, so lets jump in:

The top entries of the plan file (finger -l fortran@gnu.ai.mit.edu):

Currently planned for 0.5.20, intended to be a "development"  
version for some new features/workarounds:

  -  Support DEC Alpha (AXP) chip (running Linux, primarily).
     (Done.)

  -  Fix bugs in gcc back end (AXP support; loop unrolling crash).
     Package in g77 as patches to gcc-2.7.2 and 2.7.2.1.  Submit for
     inclusion in gcc-2.8.0.  (Done.)

Besides, to say more about Claus's code example, we need a fully  
compilable program module; just a few lines out of context won't  
prove anything.  Note, for instance, that the Digital compiler might  
throw the loop away, because (apparently) nothing is done with the  
result (gam) calculated inside ....  If this is not the reason (:-)  
the speed difference might be caused by the fact that at the default  
optimisation level the Digital Fortran compiler unrolls loops,  
whereas g77/gcc won't do that (because this is a CPU architecture  
dependent optimisation).

Hope this helps,

--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.ai.mit.edu; NWP:  
http://www.knmi.nl/hirlam

PS: Perhaps I should add that the g77 development group has the
    utmost confidence that Steve Lionel's team can counter all our
    attacks at being the "best" Fortran compiler for the Alpha plat-
    form.  To us, frequent readers (and posters) to comp.lang.fortran
    he is *the* example to follow in precision and reasonableness
    when it comes to offering support via this unpaid-for medium  
...

--
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-01-27 21:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-27 21:48 Toon Moene [this message]
     [not found] <9701282002.AA15294@moene.indiv.nluug.nl>
1997-01-29  0:10 ` compiler efficency Michal Jaegermann
  -- strict thread matches above, loose matches on Subject: below --
1997-01-28 23:23 Huw Davies
1997-01-28 20:02 Toon Moene
1997-01-28 11:22 Claus Denk
1997-01-27 22:41 Craig Burley
1997-01-27 22:15 Przemek Klosowski
1997-01-27 20:51 Robert Williams
1997-01-27 20:37 Claus Denk
1997-01-27 20:35 ` Brett McCormick
1997-01-27 20:37 ` Lev D Gelb
1997-01-27 21:15 ` Jim Nance
1997-01-27 22:13 ` Scott Locklin
1997-01-27 22:41 ` Michal Jaegermann
1997-01-27 23:35 ` Richard Henderson
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