Buildapp Hello World
你可以構建的最簡單的二進位制檔案
- 沒有依賴關係
- 不需要命令列引數
- 只寫
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!
$