[comp.unix.questions] Ultrix `fort' vs BSD `f77'

chris@mimsy.UUCP (Chris Torek) (01/19/87)

>In article <748@imagen.UUCP> geof@imagen.UUCP writes:
>>... On Unix, you can easily construct a fortran code beautifier
>>with a simple shell command.  Just use:

>>	% rm *.f77

>>:-)

In article <251@skatter.UUCP> kuo@skatter.UUCP (Dr. Peter Kuo) writes:
>I would gladly use this shell command! We found that the new Ultrix FORTRAN
>is at least 3-4 times faster than f77, even though a few bugs have been found
>in fort.

Does that mean it *compiles* 3-4 times faster, or that the code *runs*
3-4 times faster after having been compiled?  And what code?

The 4.2BSD f77 compiler was pretty bad; the 4.3 compiler is much
more correct, and the runtime libraries, now written in Vax assembly,
are much faster, but I would be greatly surprised to find that even
the ported VMS compiler could beat even the old 4.2 f77 by a factor
of four, except on carefully selected benchmarks.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris@mimsy.umd.edu

pavlov@hscfvax.UUCP (01/22/87)

In article <5110@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes:
> >In article <748@imagen.UUCP> geof@imagen.UUCP writes:
> 
> In article <251@skatter.UUCP> kuo@skatter.UUCP (Dr. Peter Kuo) writes:
> >I would gladly use this shell command! We found that the new Ultrix FORTRAN
> >is at least 3-4 times faster than f77, even though a few bugs have been found
> >in fort.
> 
> Does that mean it *compiles* 3-4 times faster, or that the code *runs*
> 3-4 times faster after having been compiled?  And what code?
> .................... I would be greatly surprised to find that even
> the ported VMS compiler could beat even the old 4.2 f77 by a factor
> of four, except on carefully selected benchmarks.

  We have some experience with both fort and f77 (on uVax II's).  Re bugs and
  speed:
   fort does not compile any faster (maybe a bit slower, in fact). But it does
   execute much faster in computation-intensive applications.  Ratio apx.
   2 - 3 : 1 .
   A "few bugs" may be an understatement.  Has anyone had any positive exper-
   iences getting help with these from DEC ??

    greg pavlov, fstrf, amherst, ny

kuo@skatter.UUCP (01/24/87)

In article <5110@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes:
> 
> In article <251@skatter.UUCP> kuo@skatter.UUCP (Dr. Peter Kuo) writes:
> >.... We found that the new Ultrix FORTRAN
> >is at least 3-4 times faster than f77, even though a few bugs have been found
> >in fort.
> 
> Does that mean it *compiles* 3-4 times faster, or that the code *runs*
> 3-4 times faster after having been compiled?  And what code?
> 
> The 4.2BSD f77 compiler was pretty bad; the 4.3 compiler is much
> more correct, and the runtime libraries, now written in Vax assembly,
> are much faster, but I would be greatly surprised to find that even
> the ported VMS compiler could beat even the old 4.2 f77 by a factor
> of four, except on carefully selected benchmarks.
> -- 

I didn't time the compile time, but for sure the execution times for fort
are much improved over f77. The benchmarks we used included ALL the fortran
programs we use in the lab (many of them are ray-tracing type programs and
magnetic field calculation, etc). As one last, but well known test, I used
the infamous savage. The fort is faster than f77 in both single and double
precision modes by a factor of 3-4! This is done under Ultrix on a VAX785.

-------------------------------------------------------------------------------
Peter Kuo                    Bitnet (VMS address)    : KUO@SASK
Accelerator Laboratory              (UUCP address)   : "skatter!kuo@sask.uucp"
(a.k.a. The Beam Warehouse)
Univ. of Saskatchewan          uucp (unix address)   : !ihnp4!sask!skatter!kuo
Saskatoon, Saskatchewan             (Bitnet address) : !ihnp4!sask.BITNET!kuo
CANADA  S7N 0W0
Tel. (306) 966-6059

[Disclaimer: all the standard stuff.]

kuo@skatter.UUCP (01/30/87)

In article <296@hscfvax.UUCP>, pavlov@hscfvax.UUCP (840033@G.Pavlov) writes:
>    A "few bugs" may be an understatement.  Has anyone had any positive exper-
>    iences getting help with these from DEC ??
> 

We started running into "undesirable features" almost the first day we
installed fort on our 785. If I recall correctly, our system manager did
not get much of a response from the DEC people. One other thing, try to
cat your fort-compiled execuatble. The first 512-bytes or so is DEC's
darn copyright notice! I don't appreciate this as it makes the file bigger
than it needs to be.

tank@apc3b2.UUCP (01/30/87)

In article <268@skatter.UUCP>, kuo@skatter.UUCP (Dr. Peter Kuo) writes:
> In article <5110@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes:
> > In article <251@skatter.UUCP> kuo@skatter.UUCP (Dr. Peter Kuo) writes:
> > 

DEC supposedly ported their VMS fortran to Ultrix and we all know how good that
one is!:-)  Rumor has it that VMS and Ultrix C will be the same too.  Anybody
got info on that?

-tank-
-- 
Jon A. Tankersley			| Usenet: { ... }!okstate!apc3b2!tank
Amoco Corporation			| Voice:  (918) 581-4086
PO Box 591, MS N1068			| Disclaimer: My own opinions.
Tulsa, Oklahoma, 74013			|