Building Common Lisp Executables
susam.in
susam.in
ls -alh /usr/bin/sbcl
-rwxr-xr-x 1 root root 304K helmi 28 2018 /usr/bin/sbcl -rwxr-xr-x 1 root root 314K Feb 5 2020 /usr/bin/sbcl*
What is the size of your hello executable? I tried stripping it, but then it started SBCL's REPL for me. Perhaps I could strip something specific, but I did not have the time to mess around with it yet. But yeah, perhaps that executable contains SBCL along with other stuff.One thing one can do is to compress the image:
http://www.sbcl.org/manual/#Saving-a-Core-Image
Some other Common Lisp implementations have smaller executables and/or provide tools to reduce the size for delivery (for example by using a tree shaker).
"The :executable t keyword argument includes the SBCL runtime in the image to ensure that the image is a standalone executable. This is why the executable for even a simple hello-world program tends to be quite large (30 MB to 50 MB)!"