Subject: Re: How do I make a program in Common Lisp?
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 04 Aug 2007 21:09:24 -0500
Newsgroups: comp.lang.lisp
Message-ID: <AKKdnXh9abvJrCjbnZ2dnUVZ_j2dnZ2d@speakeasy.net>
Ralf Mattes  <rm@mh-freiburg.de> wrote:
+---------------
| And what about SBCL?
| > (defun main ()
|   (format T "Hello word!~%")
|   (quit :unix-status 0))
| 
| > (save-lisp-and-die "simpleapp" :executable t :toplevel (function main))
+---------------

In recent versions of CMUCL for FreeBSD & Linux,
this can be done in almost exactly the same way:

    (save-lisp "simpleapp" :executable t :init-function (function main))

And, yes, it packages up the whole Lisp image into the executable.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607