Re: compiling a Lisp source to exe



c> Using gcc (on Windows) like this: [>gcc -o hello.exe hello.c] will
c> produce a file that I can run natively. Is it possible to do this same
c> with a Lisp file?

c> When I run compile-file I don't get anything I can copy to another
c> machine (with a Lisp) and run.

compile-file is like `gcc -c` -- it compliles to sort of object file, but
does not link it to an executable. if you have lisp on your target machine,
you can just load that "object files" (usually called fasls), so you do not
really need linking.

if you actually want a standalone executble, that is made via
implementation-specific functions. for example, check
ECL documentation:
http://ecls.sourceforge.net/new-manual/ch22s06.html





.



Relevant Pages

  • Re: "Recompile" VS delete all fasl and load + compile
    ... I am a newbie to Lisp. ... need to recompile all the lisp files in order to run it. ... I tried "compile-file", but there are nested multiple files that I ... Defsystem is not part of the standard, but most Lisp implementations offer their own version defsystem tool, and there are also a few open source ones (e.g. ...
    (comp.lang.lisp)
  • Re: best environment for learning Lisp?
    ...     T ... It is also good to read the manual of the Lisp implementation ... But this is really covered in the manuals, ... 'Practical Common Lisp' mentions load and compile-file in chapter 2 in the section 'Saving Your Work': ...
    (comp.lang.lisp)
  • Re: compiling a Lisp source to exe
    ... When I run compile-file I don't get anything I can copy to another ... machine (with a Lisp) and run. ... Programs like Photoshop or 3D Studio Max still make sense to run ...
    (comp.lang.lisp)
  • Re: Structure of a lisp system.
    ... Emacs is a suitable editor for Lisp. ... Check out COMPILE-FILE in the CLHS. ... sort of functionality you'd get from the C or C++ standard libraries. ...
    (comp.lang.lisp)
  • Re: COMPILE-FILE and conforming implementations
    ... FILE from a Lisp image? ... to create an "image" or a stand-alone executable. ... it can generate executables without evaluator and/or compiler ... which also means compile-file won't work of course.. ...
    (comp.lang.lisp)