Skip to content

Instantly share code, notes, and snippets.

@lamberta
Created October 18, 2009 06:58
Show Gist options
  • Save lamberta/212583 to your computer and use it in GitHub Desktop.
Save lamberta/212583 to your computer and use it in GitHub Desktop.
save sbcl core as an executable
;;;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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment