From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2b86cb9d84d546d6 X-Google-Attributes: gid1164f8,public From: danpop@afsmail.cern.ch (Dan Pop) Subject: Re: DEC Fortran vs. f2c & gcc Date: 1995/05/20 Message-ID: #1/1 X-Deja-AN: 102950432 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: organization: CERN European Lab for Particle Physics newsgroups: comp.sys.dec In 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