Wanted: Ultra-fast fortran compiler for UNIX

Steve Grandi grandi at noao.UUCP
Fri Jul 26 04:05:49 AEST 1985


> >Can anyone point to a company that supplies a UNIX Fortran compiler which
> >executes much faster than f77 (say, on par with the VMS compilers or better)?
> 
> Actually there is limited room for improvement.  The 4.2BSD compiler is
> considerably better than the original f77 in that respect.  Published
> work (by Jack Dongarra at Argonne National Laboratory
> [dongarra at anl-mcs]) shows about 25-30% slower runtimes for the 4.2BSD
> compiler over the VMS 4.1 compiler, for dense linear algebra.

Let's consider two cases.  First, pure floating point crunching as exemplified 
by the double precision LINPACK benchmark from Jack Dongarra-DONGARRA at ANL-MCS.
On a VAX-11/750 with FPA, this program compiled runs some 30% faster
on VMS (compiled with the VMS v4.1 Fortran compiler) than on 4.2BSD
Unix (with the optimizer on and with the Donn Seely f77 patches applied).

Second, let's consider the Whetstone benchmark.  For single precision
calculations, the VMS program (v3 compiler) ran 220% faster than the 4.2
program!  Why the difference between the Whetstones and the LINPACK
results?  I think the difference is largely due to the terribly
inefficient Unix math library functions: the loop

	T1=0.50025
	X=0.75
	DO 110 I=1,N11
		X=SQRT(EXP(ALOG(X)/T1))
110	CONTINUE

runs 4.9 times faster on VMS than on Unix.  4.3BSD supposedly has a
math library optimized for a VAX; let's hope so!!

Another related issue.  4.2BSD f77 with the optimizer on is VERY SLOW;
it takes about 2-4 times longer to compile a program than VMS fortran.

The bottom line is that VMS provides a significantly more efficient
Fortran system than 4.2BSD for VAXes.  Our users note the difference!
As for general software development and general timesharing, I will choose Unix
4.2BSD any day of the week over VMS; but maybe all this explains why
our 8600 runs VMS.
-- 
Steve Grandi, National Optical Astronomy Observatories, Tucson, AZ, 602-325-9228
{arizona,decvax,hao,ihnp4,seismo}!noao!grandi  noao!grandi at lbl-csam.ARPA



More information about the Comp.unix mailing list