8
我救了使用ccl:save-application
如何缩小Clozure Common Lisp可执行文件的大小?
(ccl:save-application "test"
:toplevel-function #'main
:prepend-kernel t
:purify t
:impurify t)
从Clozure的Common Lisp REPL这个简单的程序
(defun hello-world()
(format t "Hello, world"))
(defun main()
(hello-world))
。
生成的可执行文件在Mac OS X上的大小为25M。我知道它包含Lisp内核和Lisp系统的内存中表示。对于这样一个简单的程序来说,25M似乎有点大。参数purify
和impurify
似乎没有太大影响。
我有哪些选择可以减小可执行文件的大小?有没有?
一个相关的线程:http://stackoverflow.com/questions/11036070/lisp-binary-size – juanitofatas