[comp.lang.fortran] FFI Question

pegah@pleiades.cps.msu.edu (Mahmoud Pegah) (10/08/90)

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