Xref: utzoo comp.lang.c:18706 comp.lang.fortran:2046 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!chem.ucsd.edu!tps From: tps@chem.ucsd.edu (Tom Stockfisch) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Calling FORTRAN from C (Was: Need matrix inversion C routine). Message-ID: <471@chem.ucsd.EDU> Date: 17 May 89 05:11:33 GMT References: <2846@tank.uchicago.edu> <5785@cbnews.ATT.COM> <10087@smoke.BRL.MIL> <17333@mimsy.UUCP> <8197@june.cs.washington.edu> Reply-To: tps@chem.ucsd.edu (Tom Stockfisch) Organization: Chemistry Dept, UC San Diego Lines: 17 In article <8197@june.cs.washington.edu> ka@june.cs.washington.edu (Kenneth Almquist) writes: _The problem of differing calling conventions could be solved with a _stub generator.... _ The standard would _have to give standard names to the initialization and cleanup entry _points for the run time systems, so that a program with a C main routine _could initialize the FORTRAN run time system, and vice versa. _ Kenneth Almquist In calling fortran from C I would like to avoid the fortran library as much as possible. On our system the fortran i/o junk is almost 100k, stripped. I tend to use fortran just for LINPACK and other stuff that does no i/o, so I hate the waste. -- || Tom Stockfisch, UCSD Chemistry tps@chem.ucsd.edu