ECL



Paul Bowyer wrote:
> On 11/14/2011 02:13 PM, Raymond Toy wrote:
>
> Using very similar code to build the applications in SBCL and ECL, the
> executable using ECL is "4737818" bytes and runs without problems.
>
> The executable using SBCL (version 1.0.48) is "37969948" bytes and does
> not run. I used:
> (save-lisp-and-die #p"corename" :toplevel (entry-function) :executable t)
> to build the SBCL executable.
>

I have just tried on my machine
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/>;.
(this is on a mac).

* (save-lisp-and-die "toto" :executable t)
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into toto:
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]

I indeed get an executable named toto and it runs OK.

lilas% ./toto
* (+ 1 1)

2
* (quit)

lilas% ls -lh toto
-rwxr-xr-x  1 michel  staff    26M 26 nov 00:20 toto

So here the command to produce stand alone executables works perfectly.

Note if you want to produce a maxima executable, i think that the starting
point should be (cl-user::run). When after some error i fall to the
* sbcl prompt, using (cl-user::run) restores maxima prompt (of course
after having maxima loaded).




-- 
Michel Talon