Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC Fortran vs. f2c & gcc
@ 1995-05-20  4:00 Jim Elgin
  1995-05-20  4:00 ` Dan Pop
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Elgin @ 1995-05-20  4:00 UTC (permalink / raw)


Has anyone done any comparisons of execution speed for heavy
floating point Fortran code compiled with DEC Fortran and 
compared it to f2c & gcc on the alpha?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DEC Fortran vs. f2c & gcc
  1995-05-20  4:00 DEC Fortran vs. f2c & gcc Jim Elgin
@ 1995-05-20  4:00 ` Dan Pop
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Pop @ 1995-05-20  4:00 UTC (permalink / raw)


In <root.800992741@spectral.com> root@paulina.spectral.com (Jim Elgin) writes:

>Has anyone done any comparisons of execution speed for heavy
>floating point Fortran code compiled with DEC Fortran and 
>compared it to f2c & gcc on the alpha?
>
    ues5:~/tmp 204> f90 -O h.f
    ues5:~/tmp 205> time ./a.out 
       400.0000    
    7.602u 0.216s 0:08.37 93.3% 0+20k 0+0io 52pf+0w
    ues5:~/tmp 206> f2c h.f
    ues5:~/tmp 207> gcc -O h.c -lf2c -lm
    ues5:~/tmp 208> time ./a.out
      400.
    42.314u 0.514s 0:44.63 95.9% 0+20k 2+0io 22pf+0w

The program multiplies two large arrays using the "classic" algorithm.

If you needed a good reason to buy DEC Fortran, now you have one.
The other is that f2c is rather unforgiving with non-standard F77 code.
If you don't have to deal with legacy code and you need to compile only
your own code, this might be irrelevant.

Dan
--
Dan Pop
CERN, CN Division
Email: danpop@afsmail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-05-20  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-20  4:00 DEC Fortran vs. f2c & gcc Jim Elgin
1995-05-20  4:00 ` Dan Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox