Skip to content

Instantly share code, notes, and snippets.

@burhanloey
Created August 8, 2017 13:29
Show Gist options
  • Save burhanloey/614bc883137a08ee62f06a8b4c9b1298 to your computer and use it in GitHub Desktop.
Save burhanloey/614bc883137a08ee62f06a8b4c9b1298 to your computer and use it in GitHub Desktop.
Creating executables from different Common Lisp implementation
(defun main ()
(format t "Hello World!~%"))
(save-application "hello-ccl" :toplevel-function #'main :prepend-kernel t)
;; Compile to object file:
;;
;; > (compile-file "hello-ecl.lisp" :system-p t)
;;
;; Create executable:
;;
;; > (c:build-program "hello-ecl" :lisp-files '("hello-ecl.o"))
(defun main ()
(format t "Hello World!~%")
(quit))
(main)
(defun main ()
(format t "Hello World!~%"))
(sb-ext:save-lisp-and-die "hello-sbcl" :toplevel #'main :executable t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment