[comp.sys.atari.st] Fortran to C translation

jparker@watvlsi.waterloo.edu (James Parker) (10/07/88)

Does anyone know of a way or does any such thing exist as a
translation program or method for changing Fortran source code
to C source.

I have written a fair amount of Fortran code on the UNIX machine
at work but I have no f77 compiler for my ST...

Does anyone have any ideas or suggestions??

Thanx, James 

gl8f@bessel.acc.Virginia.EDU (Greg Lindahl) (10/07/88)

if you want to do fortran and do floating point, i'd suggest that you buy
a real fortran compiler for your ST. the various C compilers leave a bit
to be desired with their fp performance. there are 2 popular commercial
fortran compilers, absoft and prospero.

disclaimer: i am not affiliated with absoft or prospero...

----------
Greg Lindahl                                       internet:  gl8f@virginia.edu
University of Virginia Department of Astronomy     bitnet:  gl8f@virginia.bitnet

"Quayle for President. Even JFK would have voted for him!"

rob@baloo.eng.ohio-state.edu (Rob Carriere) (10/08/88)

In article <4054@watvlsi.waterloo.edu> jparker@watvlsi.waterloo.edu (James Parker) writes:
>Does anyone have any ideas or suggestions [for f77->C]??

There's just been a discussion of that on comp.lang.c  If you have
about 2 weeks of news memory, you should be able to get it all,
including addresses.  Be aware that, as far as I noticed, all this
was on IBM-PC type boxes.

Rob Carriere

braner@batcomputer.tn.cornell.edu (Moshe Braner) (10/09/88)

[]

If you have a bunch of FORTRAN code and you want to run it on the ST,
I strongly recommend the Absoft compiler (AC/FORTRAN77).  It will
run standard code as-is, and about as fast as is possible on a 68000.
(BTW this is the SAME compiler that is sold as Microsoft FORTRAN on
the Macintosh!)  Absoft also have many nice extensions to FORTRAN77,
plus GEM/TOS support.

If you want to use C, then use MWC, or, better, Laser C.  MWC is a bit
slower than Absoft on FP, while Laser C is a bit faster than even Absoft.
Caveat: C does it all in double precision whether you want it or not.

To translate FORTRAN source code to C, especially if you want readable
C code that can be further maintained or modified, it seems like the
only solution (anybody know of others?) is the FOR_C translator made
by Cobalt Blue.  Alas it costs $750 (but there's a 30% educomp discount).
See Computer Language, Oct. 88 for a review of sorts.  FOR_C is sold as
an MS-DOS executable, but the output is ANSI C so is portable.  The
source code for the supporting libraries (that do the I/O, etc) is
included.

- Moshe Braner

 1*t800 == 3*68881
16*t800 == Cray

-----------------------------
Would you trust a man, whose line of thought can be easily broken
by a reporter, to lead the country in a time of crisis?

wes@obie.UUCP (Barnacle Wes) (10/11/88)

In article <6495@batcomputer.tn.cornell.edu>, braner@batcomputer.tn.cornell.edu (Moshe Braner) writes:
> [...]
> If you want to use C, then use MWC, or, better, Laser C.  MWC is a bit
> slower than Absoft on FP, while Laser C is a bit faster than even Absoft.
> Caveat: C does it all in double precision whether you want it or not.

I talked with Bill Lederer at MWC last Thursday about the Atari
floating-point board for the Megas.  He said they have one in-house, and
would have copies of the libraries out the beta testers ASAP.  They'll
probably have the library out before Atari gets the boards out :-).

> Would you trust a man, whose line of thought can be easily broken
> by a reporter, to lead the country in a time of crisis?

No.  Do you really want to elect a man who made it a FELONY to give a
member of your family a rifle or shotgun as a gift?  Sure, I knew you
wouldn't. :-(

-- 
                     {hpda, uwmcsd1}!sp7040!obie!wes

         "How do you make the boat go when there's no wind?"
                                 -- Me --