Path: utzoo!attcan!uunet!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!msuinfo!news From: pegah@pleiades.cps.msu.edu (Mahmoud Pegah) Newsgroups: comp.lang.fortran Subject: FFI Question Message-ID: <1990Oct8.162921.21896@msuinfo.cl.msu.edu> Date: 8 Oct 90 16:29:21 GMT Sender: news@msuinfo.cl.msu.edu Organization: Computer Science, Michigan State University, E. Lansing Lines: 48 Hello: I am using PROCYON Common Lisp to call foreign functions written in FORTRAN (Language Systems MPW FORTRAN). I am using the following to process the object code: Link 6 -rt FRGN=1 6 -sn Main=xforfunc 6 -sn f_RunTime=xforfunc 6 -sn f_Intrinsics=xforfunc 6 -ma FOREIGNFUNCTION=xforfunc 6 '::ForeignLib.o' 6 xforfunc.f.o 6 "{FLibraries}"FORTRANlib.o 6 "{FLibraries}"IntrinsicLib.o 6 "{Libraries}"Interface.o 6 "{Libraries}"Runtime.o 6 xforfunc.f.o 6 -o xforfunc (Yes, this is like a Mac CODE resource, except that it has foreign function type FRGN.) Any comments/help/reply would be appreciated for the following: - Is there any other method to process the object code to produce a resource? - Is it possible to do I/O in FORTRAN side? - Are COMMON variables allowed? Thanks in advance. Please reply by e-mail to pegah@pleiades.cps.msu.edu or pegah@MSUEGR.BITNET or uunet!frith!pegah -Mahmoud Pegah AI/KBS Group, CPS Mich State Univ