Created
August 8, 2017 13:29
-
-
Save burhanloey/614bc883137a08ee62f06a8b4c9b1298 to your computer and use it in GitHub Desktop.
Creating executables from different Common Lisp implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun main () | |
(format t "Hello World!~%")) | |
(save-application "hello-ccl" :toplevel-function #'main :prepend-kernel t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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