Page 1 of 1

Can i compile program in to executable file in SBCL(not core

Posted: Tue Oct 12, 2010 7:28 am
by paul4936
Can i compile program in to executable file in SBCL(not core image)?
Because core image size ~60-80 mb and it no good.
Or its imposible with lisp?

Re: Can i compile program in to executable file in SBCL(not core

Posted: Tue Oct 12, 2010 9:37 am
by ramarren
To run Common Lisp programs you need to a Common Lisp environment. Which means you need a core somewhere. It is possible to just load a FASL file into a preexisting core. On linux SBCL generated FASLs are even generated with a hashbang, and hence are executable in a sense.

Re: Can i compile program in to executable file in SBCL(not core

Posted: Tue Oct 12, 2010 9:57 am
by gugamilare
Clisp is capable of creating much smaller executables, ECL even smaller ones, so you can try those if you want.

Another option is to create a script with SBCL (or any other lisp) and require that the user have SBCL installed in its system. I believe SBCL's manual have instructions on how to do this.