This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

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

3 posts · 837 views

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

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

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.