Xref: utzoo comp.lang.c:39415 comp.lang.functional:795 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!polygen!bill From: bill@polygen.uucp (Bill Poitras) Newsgroups: comp.lang.c,comp.lang.functional Subject: Calling LISP from C (QUERY) Message-ID: <1096@redford.UUCP> Date: 20 May 91 13:16:50 GMT Reply-To: bill@redford.UUCP (Bill Poitras(X258)) Organization: Polygen Corporation, Waltham, MA Lines: 38 Someone wrote me back about this saying: >if you give any information about what lisp, what machine, what >operating system and what c you are using, then somebody might be able >to help. > >if you add in a little information about what you are trying to do, >then even more people can help. So I will. I am trying to take some common LISP code which has some very complex algorithms and interface them to C. The specifics: LISP: compiled common LISP OS: IRIX Unix System V, AIX 3.1.x , Sun OS 4.1 Machine: Silicon Graphics Personal Iris, IBM RS/6000, Sun 4, Sun 3 C compiler: C compiler which comes with the system. ANSI C for RS/6000, K&R for Sun and IRIS. The type of calls that I would make: main() { Molecule x; int i; i = LISP_Molecular_weight_of(x); } All of the computation would be in LISP, the User Interface for the program would be in C. Hopefully this is enough. If not, let me know. +-----------------+---------------------------+-----------------------------+ | Bill Poitras | Polygen Corporation | {princeton mit-eddie | | (bill) | Waltham, MA USA | bu sunne}!polygen!bill | | | FAX (617)890-8694 | bill@polygen.com | +-----------------+---------------------------+-----------------------------+