geoff@wrs.UUCP (08/13/87)
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?
---