Newsgroups: comp.binaries.ibm.pc.d
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!ressler
From: ressler@CS.Cornell.EDU (Gene Ressler)
Subject: Re: Fortran77--->C(++)?
Message-ID: <1991Jun17.133946.8601@cs.cornell.edu>
Sender: news@cs.cornell.edu (USENET news user)
Nntp-Posting-Host: turing4.cs.cornell.edu
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
References: <1991Jun15.114003.23662@magnus.acs.ohio-state.edu> <4092@sixhub.UUCP>
Distribution: na
Date: Mon, 17 Jun 1991 13:39:46 GMT
Lines: 34

In article <4092@sixhub.UUCP> davidsen@sixhub.UUCP (bill davidsen) writes:
>In article <1991Jun15.114003.23662@magnus.acs.ohio-state.edu> erhugo@magnus.acs.ohio-state.edu (Eric R Hugo) writes:
>| Has anyone out there had any experience translating algorhythms adapted
>| to work in Fortran to work in C or C++.  Is this possible or are the
>| languages soooo different that it would be easier to not even look at
>| the Fortran source code?  Any pointers would be appreciated. ;-)
>
>  AT&T has released the code for the unix f77 compiler, which compiles
>FORTRAN into C code. That certainly sounds like a start...

FYI from Kieth Petersen:

>I have uploaded to SIMTEL20:
>
>pd1:<msdos.fortran>
>F2C-SRC.ZIP     Source for f2c, Fortran 77-to-C converter
>F2C-EXE.ZIP     Binaries & Libs for f2c Fortran to C converter
>
>This is AT&T's f2c project--A portable fortran 77 to C converter that
>is the closest thing I know of to free fortran on an MSDOS machine.
>The sources were FTP's from research.att.com, and compiled with
>virtually no changes with MSC 5.1.  Both small and large model
>libraries are included with the executable.  Because of DOS's small
>memory size, very large programs may run out of space during the
>conversion, but I found that all but the largest fortran programs will
>convert properly.  The C produced is very portable K&R C, with options
>to produce ANSI C or C++.
>
>I hope they can be useful.
>
>Regards,
>
>David Fenyes                                 dfenyes@thesis1.med.uth.tmc.edu
>University of Texas Medical School           Houston, Texas
