Xref: utzoo comp.lang.c:18434 comp.lang.fortran:2016 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Calling FORTRAN from C (Was: Need matrix inversion C routine). Message-ID: <17333@mimsy.UUCP> Date: 6 May 89 03:54:21 GMT References: <2846@tank.uchicago.edu> <5785@cbnews.ATT.COM> <10087@smoke.BRL.MIL> <1415@uw-entropy.ms.washington.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 22 In article <1415@uw-entropy.ms.washington.edu> charlie@mica.stat.washington.edu (Charlie Geyer) writes: >I just want an answer to a much simpler problem. How to write an >intellegent C program (no strings or structures in arguments, no call >by value, etc.) that calls a Fortran subroutine or is called by one. >I know there is no portable answer to this now. But shouldn't there >be? Perhaps there should. But note that a Fortran compiler might use an entirely different run-time environment (e.g., perhaps no stack at all) than a C compiler, even on the same machine. It is clear that no one language standard can constrain any *other* language, and that therefore no one standard (for Fortran, C, PL/I, APL, Lisp, DDL, rog-o-matic, or whatever) can require inter-language calls. It requires an inter-language standard to do this. Good luck on getting together an inter-language standard ... you will certainly need it. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris