Buildapp Hello World

你可以构建的最简单的二进制文件

  1. 没有依赖关系
  2. 不需要命令行参数
  3. 只写 Hello World!stdout

在你建立了 buildapp 之后,你可以……

$ buildapp --eval '(defun main (argv) (declare (ignore argv)) (write-line "Hello, world!"))' --entry main --output hello-world
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into hello-world:
writing 4800 bytes from the read-only space at 0x20000000
writing 3216 bytes from the static space at 0x20100000
writing 43220992 bytes from the dynamic space at 0x1000000000
done]

$ ./hello-world 
Hello, world!

$