[comp.sys.amiga] FORTRAN recommendation?

hubey@pilot.njin.net (Hubey) (06/02/90)

I might have to compile some large FORTRAN programs on the AMiga.
Some or all of it might be FORTRAN IV.  I think that FORTRAN 77
specs support  FORTRAN IV constructs as a subset. I also think that
there are at least two FORTRAN compilers for the AMiga.

Am I right? And has anyone had experience with any Amiga FORTRAN
compilers, especially compiling old FORTRAN IV code ??

I don't mind either email replies or postings.  

Thanks for any help.

mark
-- 
-----------------------------------------------------------------------------
 hubey@pilot.njin.net  |  hubey@apollo.montclair.edu | ...!rutgers!njin!hubey
-----------------------------------------------------------------------------

dedina@cup.portal.com (Michael J Dedina) (06/03/90)

>I might have to compile some large FORTRAN programs on the AMiga.
>Some or all of it might be FORTRAN IV.  I think that FORTRAN 77
>specs support  FORTRAN IV constructs as a subset. I also think that
>there are at least two FORTRAN compilers for the AMiga.

If I remember right, a F77 compiler will not necessarily be able to
compile Fortran IV code (I don't have any information about Amiga
Fortrans specifically).  There are statements, like DEFINE FILE, which
are not included in the F77 standard.  Also, loop semantics have changed:
I beleive a F77 loop will always execute once; not so with Fortran 66
(i.e. Fortran IV) loops.

So you should make sure the compiler explicitly supports F66.

I don't have the Fortran standard in front of me, so I'm not 100% sure
of the above (only 99%).

    -Mike Dedina
     IBM Corporation
     dedina@cup.portal.com

hinker@acl.lanl.gov (Paul J. Hinker) (06/04/90)

   Close, Michael, but no banana.  FORTRAN 66 requires that all DO loops
execute at least once.  FORTRAN 77 will allow the body of a DO to be skipped
if the loop bounds are such that the start is larger than the end.  Most
FORTRAN 77 compilers have a command line flag that will follow the FORTRAN 66
way of handling DO loops.  I can't comment on Amiga FORTRAN compilers.