Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mtune!codas!cpsc6a!rtech!wrs!geoff From: geoff@wrs.UUCP Newsgroups: comp.lang.c Subject: C to Fortran callable C Message-ID: <297@wrs.UUCP> Date: Thu, 13-Aug-87 02:18:57 EDT Article-I.D.: wrs.297 Posted: Thu Aug 13 02:18:57 1987 Date-Received: Sun, 16-Aug-87 09:22:39 EDT Reply-To: geoff@wrs.UUCP (Geoff Espin) Distribution: na Organization: Wind River Systems, Emeryville, CA Lines: 30 Does a tool exist to generate Fortran callable C routines from C source code. The likely compilers would be f77 or gf77 (Greenhills) for 680x0. I've begun writing an awk[1] program but suspect there may be painful intricacies down the line. A very simple example of what I need: int foobar (x) int x; { /* whatever */ } becomes (I think): int foobar_ (x) int *x; { external int foobar (); return (foobar (*x)); } Any advice/leads/source would be greatly appreciated. Any tips about calling Fortran routines from C would also be useful. THANKS! -Geoff -------------------- [1] Hmmm, why isn't there a comp.lang.awk? ---