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

Discussion of Common Lisp
Post Reply
paul4936
Posts: 4
Joined: Wed Oct 06, 2010 11:28 am
Location: Russia,Krasnoyarsk

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

Post by paul4936 » Tue Oct 12, 2010 7:28 am

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?

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

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

Post by ramarren » Tue Oct 12, 2010 9:37 am

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.

gugamilare
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil
Contact:

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

Post by gugamilare » Tue Oct 12, 2010 9:57 am

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.

Post Reply