Comments on Building Common Lisp Executables
Susam Pal said:
Thank you, Héctor, for your comment! I updated the example program in this post as follows to test the compression feature:
(defun main ()
(format t "hello, world~%"))
(sb-ext:save-lisp-and-die "hello" :executable t :compression t :toplevel #'main)
Indeed this created an executable that was only 8.1 MB in size whereas without compression the executable size is 35 MB.
Héctor said:
You can greatly reduce the executable size when compiling with SBCL by adding
to the following: