From: danpop@afsmail.cern.ch (Dan Pop)
Subject: Re: DEC Fortran vs. f2c & gcc
Date: 1995/05/20 [thread overview]
Message-ID: <danpop.801004803@rscernix> (raw)
In-Reply-To: root.800992741@spectral.com
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
prev parent reply other threads:[~1995-05-20 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-20 4:00 DEC Fortran vs. f2c & gcc Jim Elgin
1995-05-20 4:00 ` Dan Pop [this message]
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