Xref: utzoo comp.lang.lisp:2544 comp.lang.c:24337 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!mbunix!mark From: mark@mbunix.mitre.org (Cimini) Newsgroups: comp.lang.lisp,comp.lang.lisp.franz,comp.lang.c Subject: Re: C <---> LISP foreign function interface Message-ID: <81973@linus.UUCP> Date: 6 Dec 89 12:25:26 GMT References: <1797@accuvax.nwu.edu> Sender: news@linus.UUCP Reply-To: mark@mbunix.mitre.org (Cimini) Organization: The MITRE Corp. Bedford, MA Lines: 28 In article <1797@accuvax.nwu.edu> sandell@ferret.ils.nwu.edu (Greg Sandell) writes: > >What facilities exist in Common Lisp to call compliled code written >in foreign languages? Specificially, I would like to know how to >have some C code run within LISP. > >Thanks in advance, >Greg Sandell > Greg, Sun provides extensions to Common LISP int the area of foreign function interfaces. There are two ways to run a foreign program: 1) the LISP code includes the (in this case) C .o code into its image and calls the functions, 2) LISp launches a runable program and a communication path is set-up between the two processes. This of course is a watered down explaination for more details see some Sun documentation. Mark ###################################################################### # We, the unwilling, led by Mark Cimini # the unknowing, are doing the The MITRE Corp. # impossible for the ungrateful. Bedford, MA ######################################################################