[comp.lang.fortran] FORTRAN TO C

i6finn@vax87.aud.auc.dk (10/17/90)

Subject: FORTRAN to C translator for IBM compatible PC's and
         MS-C

I would like to translate FORTRAN programs into C code. Has
anybody heard of a public domain F77 to C translator for PC's
(MS-DOS) and Microsoft C ?

f2c generated C-code will not work on a PC (MS-DOS) ! (or will it ?)

Please E-mail.


Finn Jensen
Department of Building Technology
and Structural Engineering
University of Aalborg
DK-9000 Aalborg

E-mail: I6FINN@VAX87.AUD.AUC.DK



 

mwm@a.gp.cs.cmu.edu (Mark Maimone) (10/17/90)

	It is indeed possible to run f2c-generated C code under MSDOS.  It
does take some extra work, however, since the I/O and math libraries must
also be compiled on the MSDOS machine.  You might also have to adjust the
typedefs in f2c.h to match your memory model.

	There were some problems with older versions of the f2c libraries,
but these have been fixed.  So if you grab a current copy of f2c, libf77,
and libi77 from research.att.com (in directory dist/f2c), and find a good C
compiler things should work out.  I've heard that Microsoft C 6.0 and Turbo
C++ have been used successfully.
-- 
----------------------------------------------------------------------
Mark Maimone				phone: (412) 268 - 7698
Carnegie Mellon Computer Science	email: mwm@cs.cmu.edu
grad student, vocal jazz and PDQ Bach enthusiast