ECL



Paul Bowyer wrote:
> (save-lisp-and-die "sbclcore" :executable t)
> ?..doesn't work.

It works for me, here is a transcript:

lilas% uname -a
Darwin lilas 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT
2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
I have downloaded latest compiled sbcl for MAC OS X a  month ago.

lilas% sbcl
This is SBCL 1.0.51.0-a546163, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>;.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (princ "Define a simple function, TEST-FUNCTION") (terpri)
(defun test-function (x y)
   (format t "~D + ~D is equal to ~D~%" x y (+ x y)))
(princ "TEST-FUNCTION has been created") (terpri)

(princ "Calling TEST-FUNCTION") (terpri)
(test-function 1 1)
(princ "Finished") (terpri)

Define a simple function, TEST-FUNCTION
"Define a simple function, TEST-FUNCTION"
*
NIL
*
TEST-FUNCTION
* TEST-FUNCTION has been created
"TEST-FUNCTION has been created"
*
NIL
* Calling TEST-FUNCTION
"Calling TEST-FUNCTION"
*
NIL
* 1 + 1 is equal to 2
NIL
* Finished
"Finished"
*
NIL
* (save-lisp-and-die "sbclcore" :executable t)
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into sbclcore:
writing 2792 bytes from the read-only space at 0x04000000
writing 1712 bytes from the static space at 0x04100000
writing 27451392 bytes from the dynamic space at 0x10000000
done]


lilas% ./sbclcore
* (test-function 1 1)
1 + 1 is equal to 2
NIL
* (quit)



-- 
Michel Talon