[comp.lang.c] Lisp to C. Another request!

lxa@speech2.cs.cmu.edu (Francois Lecouat) (01/05/89)

A friend of mine is looking for a translator from Lisp to C. Ideally it would
read CommonLisp but if necessary the code could be ported to another Lisp
first. 
Jean-Marc Pageot posted a similar request recently.
I'll post a summary if there is enough interest. 

Please send me email or contact	Herve Lambert at
	IIRIAM
	2 rue Henri Barbusse
	13241 Marseille Cedex 1
	France
	Tel: (011-33) 91 91 {7659 or 3672}

Thanks in advance.

Francois Lecouat 
lecouat@cs.cmu.edu
-- 

geoff@endor.harvard.edu (Geoff Clemm) (01/05/89)

In article <3959@pt.cs.cmu.edu> lxa@speech2.cs.cmu.edu (Francois Lecouat) writes:
>A friend of mine is looking for a translator from Lisp to C. Ideally it would
>read CommonLisp but if necessary the code could be ported to another Lisp
>first. 
>Jean-Marc Pageot posted a similar request recently.

Come on folks ... get serious.

If you are interested in non-trivial Lisp programs, there is no such thing
as a Lisp to C translator, and never will be.

The best you can do is find one of the lisp systems that are written in C,
and bundle that with your Lisp program.  Some systems "compile" the Lisp
into a more efficient form, and allow a stripped-down runtime version of
the Lisp interpreter, but you can't get away from garbage collection and
the need to be able to interpret functions generated at runtime.

On the other hand, if your Lisp programs are trivial enough to fit conveniently
into the C model, then writing a translator is equally trivial.

Geoff Clemm