Skip to navigation
Compile a hello world lisp to native code
04.04.23
$ cat hello.lisp (defun main () (format t "hello, world~%")) (sb-ext:save-lisp-and-die "hello" :executable t :toplevel #'main) $ sbcl --load hello.lisp $ ./hello hello, world or $ cat hello.lisp (defun main (argv) (declare (ignore argv)) (format t "hello, world~%")) $ buildapp --load hello.lisp --entry main --output hello ;; loading file #P"/Users/susam/hello.lisp" $ ./hello hello, world
https://susam.github.io/maze/building-common-lisp-executables.html
Reply
Anonymous
Information Epoch 1742243218
Think hierarchically.
Home
Notebook
Contact us