This file contains hidden or 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
;;;save sbcl core as an executable | |
;;;http://www.sbcl.org/manual/Saving-a-Core-Image.html | |
(sb-ext:save-lisp-and-die "myexec" ;file name | |
:executable t ;create a standalone executable | |
:toplevel 'main ;function to run when core is resumed | |
:purify t) ;purifying gc to move dynamic objs to static space |
This file contains hidden or 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
;;;building a C shared library, | |
;;;and calling it in Common Lisp with CFFI | |
(require :asdf) | |
(asdf:load-system :cffi) | |
(defpackage :cffi-user | |
(:use :common-lisp :cffi)) | |
(in-package :cffi-user) |
NewerOlder