Re: Couldn't find how to build an executable out of Lisp code



"Javier" <javuchi@xxxxxxxxx> writes:

Javier wrote:

Not really. The executable doesn't work if you don't have SBCL
installed. It doesn't statically link the libraries of SBCL.

Sorry, I'm wrong, it does work pretty good, except that the executable
does not allow to load any package

This is meaningless, until you implement and show us a function called
LOAD-PACKAGE.
Do you mean my COM.INFORMATIMAGO.COMMON-LISP.PACKAGE:LOAD-PACKAGE?

In Common Lisp, you can only load files, or define/make package, and
both operations can be done in saved images, whether executable or
not, as long as the program doesn't go to extraordinary lengths to
prevent you to do so.


and makes a really big image, about
22Mb only with the basic. Elsewhere, using zip to compress it, the
resulting archive is 7Mb, somewhat acceptable considering that you have
a complete CL system being integrated.

Ah! :-)


--
__Pascal Bourguignon__ http://www.informatimago.com/

In a World without Walls and Fences,
who needs Windows and Gates?
.



Relevant Pages

  • Re: How does Require deal with multiple files of the same name in different directories
    ... IMHO, once it is decided to load the file, this is required to happen, so it is not ... A program written for older W32F versions is available somewhere. ... As the old libraries won't work with the new W32F anyway, ... downloaded apps, which means checking any downloadable apps I (and ...
    (comp.lang.forth)
  • Re: How does Require deal with multiple files of the same name in different directories
    ... the recompilation takes a few milliseconds ... IMHO, once it is decided to load the file, this is required to happen, so it is not ... A program written for older W32F versions is available somewhere. ... As the old libraries won't work with the new W32F anyway, ...
    (comp.lang.forth)
  • TIP #239: Enhance the load Command
    ... This TIP proposes enhancing the Tcl *load* command with the ability to ... load arbitrary libraries and functions. ...
    (comp.lang.tcl)
  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... all the dependent DLLs (and all their dependent DLLs and all their ... DLL, though, this triggers the OS to actual load and link that DLL...hence, ... if your libraries are accessed almost immediately and ... As noted, though, most OSes out there are anything but "toolmaker's view" ...
    (alt.lang.asm)
  • Re: Dynamic Linking and Loading in an odd way
    ... it must be able to load either or both on demand. ... | yet I want to be able to create new libraries and functions without ... at coding time what that list file name is. ... If you are implementing a dynamic command facility in your ...
    (comp.unix.programmer)