Most implementations of the circuit are compiled either in C or in some other intermediate format, so I donβt know any of them that preserve the current state of the image. Most of them will compile the binaries, so if you really read the implementation guide.
Generic Lisp, on the other hand, usually exposes this in a certain way. SBCL has the previously mentioned save-lisp -and-die function , and CCL has copy applications . These are the only two Lisp that I use, so if you are using a different implementation, be sure to check the documentation.
If you want to do this, here is one for SBCL. For CCL, check out the Apple Current Converter example . This tutorial ends with examples of actions to remove the resulting application package.
Edit: here is another, simpler example for SBCL.
Shaun
source share