Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!labrea!aurora!ames!hc!beta!cmcl2!brl-adm!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: fortran -> C Message-ID: <8684@mimsy.UUCP> Date: Mon, 21-Sep-87 23:55:35 EDT Article-I.D.: mimsy.8684 Posted: Mon Sep 21 23:55:35 1987 Date-Received: Thu, 24-Sep-87 00:43:14 EDT References: <2413@batcomputer.tn.cornell.edu> Distribution: comp Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 Keywords: fortran, C, translate Xref: mnetor comp.lang.c:4479 comp.lang.fortran:225 In article <2413@batcomputer.tn.cornell.edu> prove@batcomputer.tn.cornell.edu (Roger Ove) writes: >... A few of the desired facilities are: >1) Ability to replace nasty computed goto's, arithmetic goto's, > etc into something reasonable. Some of the source is extremely > poorly written, and it would be nice is the translator could > at least make a start at untangling it. >2) Ratfor, f77, and f66 input (some source is old). If you find a translator that can read Ratfor source, you might try using `struct' to translate the old ugly Fortran code into Ratfor. Struct is included with 4BSD; it was written at Bell Labs by Brenda Baker. (Where the documentation has gone I cannot guess; there is a reference to a Bell Labs internal memorandum in the Ratfor documentation. Perhaps this was never published elsewhere, although I find that hard to believe.) Struct is not perfect---in particular, the 4BSD version needs a thorough cleaning to make it type-correct---but it really does improve those old dusty decks. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris