Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde!uunet!lll-winken!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxe.cso.uiuc.edu!hirchert From: hirchert@uxe.cso.uiuc.edu Newsgroups: comp.lang.fortran Subject: Re: Is there a fort2c? Message-ID: <50500169@uxe.cso.uiuc.edu> Date: 6 Dec 89 01:38:57 GMT References: <6258@cbnewsh.ATT.COM> Lines: 51 Nf-ID: #R:cbnewsh.ATT.COM:6258:uxe.cso.uiuc.edu:50500169:000:1659 Nf-From: uxe.cso.uiuc.edu!hirchert Dec 5 10:32:00 1989 Ryan Moats (jayhawk@cbnewsh.ATT.COM) asks: >Is there, was there, will there be a tool to convert fortran >code to C code. The following sounds like what you might be looking for: >From: Norm Schryer >Date: Thu, 16 Nov 89 17:17:35 EST >Subject: Fortran 77 to C Converter Available via Netlib > >The Unix command > > (echo filter f2c; cat file) | mail netlib@research.att.com > >converts the Fortran 77 in "file" to C and returns it via email. > >The converted C requires a "header" file which can be obtained by: > > echo "send f2c.h from f2c" | mail netlib@research.att.com > >The command > > echo "send index from f2c" | mail netlib@research.att.com > >returns an index of useful f2c information available from Netlib >including a "man page", source for libraries, etc. > >F2c "just" prints out the C parse tree internally produced by f77, >the reliable old Fortran 77 compiler of Stu Feldman. >The programming was done by D. M. Gay of Bell Labs and >Mark Maimone of Carnegie-Mellon University. > >The usual caveat applies: > The service is free and you get what you pay for. > >An additional caveat is that a daemon saves the Fortran submitted >to Netlib so we can do regression testing on f2c. > >We intend to put f2c in the public domain and want as much >experience with it as possible before foisting it on the world. > >Comments, questions and complaints to > > Norm Schryer, nls@research.att.com, 201-582-2912. Since you both work for AT&T, maybe they'll even let you use it directly instead of over the network. Kurt W. Hirchert hirchert@ncsa.uiuc.edu National Center for Supercomputing Applications