Xref: utzoo comp.lang.c:18515 comp.lang.fortran:2024 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!gatech!csun1!weyrich From: weyrich@csun1.UUCP (Orville Weyrich) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Calling FORTRAN from C (Was: Need matrix inversion C routine). Message-ID: <176@csun1.UUCP> Date: 9 May 89 01:42:26 GMT References: <17333@mimsy.UUCP> Distribution: na Organization: Univ. of GA, CS Dept., Athens Lines: 46 From article <17333@mimsy.UUCP>, by chris@mimsy.UUCP (Chris Torek): > 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. This has been a topic near and dear to me for a long time: We really should have some kind of standard for inter-language communication. Such a standard should be an add-on option to the existing language standards, and should specify PORTABLE ways of specifying how to call procedures/functions in other languages. If such a standard existed, then vendors would be able to claim that their language X and language Y compilers met the interface standard, and procurement personnel would be able specify such compatibility as a requirement. It is of course unreasonable to expect to be able to mix-n-match any arbitrary compilers from arbitrary suppliers. It is also unreasonable to expect to be able to pass anything between languages transparently. For example, if FORTRAN arrays of character can contain null values, it is unreasonable to expect to be able to pass such arrays to C, which treats nulls as "end of string". It would, however, be reasonable to define a standard structure in C which could be used to communicate string data with FORTRAN routines. Anyone interested in trying to draft such a standard (which might include proposed 'tweeks' to the language standards being mingled)? My own interest would be mainly between FORTRAN and Ada, but I am sure that there is also interest in linking FORTRAN with C and C with Ada. E-mail me if you are interested. Orville R. Weyrich, Jr. weyrich@csun1.cs.uga.edu -- Orville R. Weyrich, Jr. | UUCP : ...gatech!csun1!weyrich Department of Computer Science | INTERNET: weyrich@csun1.cs.uga.edu University of Georgia | Athens, GA 30602 USA | MA BELL : (404) 542-1082