[comp.sys.transputer] How do I call Fortrans routines from within C ?

RE_MAC@vaxa.nerc-nutis.ac.uk (Mark O'Connell) (03/10/90)

We have a Meiko Computing Surface hosted by a Sun 4/110.  At the moment we 
are implementing out applications in C.  However we will get some 10,000
lines of Fortran code and want to call these procedures from within C.
How do I do this?  Can I compile both separately and link them?  I would
appreciate any help.

Thanks in advance,
Mark O'Connell.

NERC Unit for Thematic Information Systems,
Dept. of Geography,
University of Reading.

J.Blair-Fish@edinburgh.ac.uk (03/12/90)

Mark
I do not know which compiler you are using. Only the latest C and FORTRAN
compilers we have here as prerelease versions allow cross calling. These
are invoked with mf77 and mcc and I have a 9 page document "FORTRAN release 2
Release Notes" by James Cownie, October 12 , 1989 which explains the
cross calling. mf77 and mcc work like conventional UNIX compilers and
invoke the linker which can also be called with mld. Passing characters
around includes calling subroutines and functions to do the conversion.

Let me know if you need a copy of the said release notes.

John Blair-Fish