From 6d2c19203913f859d82cc929a18e2784003b3a84 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 14 Feb 2021 23:34:53 +0100 Subject: extreload.asd: Compress SBCL executable The default executable compiled by SBCL is huge. Copied code from: https://lispcookbook.github.io/cl-cookbook/scripting.html#building-a-smaller-binary-with-sbcls-core-compression to produce a smaller executable. Here's the size comparison: $ du -hs extreload* 11M extreload-ecl 58M extreload-sbcl 15M extreload-sbcl-compressed --- l/extreload.asd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/l/extreload.asd b/l/extreload.asd index 2748eee..96e076e 100644 --- a/l/extreload.asd +++ b/l/extreload.asd @@ -19,3 +19,7 @@ :build-operation "program-op" :build-pathname "extreload" :entry-point "extreload:main") + +#+sb-core-compression +(defmethod asdf:perform ((o asdf:image-op) (c asdf:system)) + (uiop:dump-image (asdf:output-file o c) :executable t :compression t)) -- cgit v1.2.3