common-lisp Buildapp Hello World


Example

The simplest possible binary you could build

  1. Has no dependencies
  2. Takes no command line arguments
  3. Just writes "Hello world!" to stdout

After you've built buildapp, you can just...

$ 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!

$