Re: compiling a Lisp source to exe
- From: Rainer Joswig <joswig@xxxxxxx>
- Date: Mon, 29 Sep 2008 20:43:59 +0200
In article
<4e36fe48-6a6b-4e0d-95a5-642f6edcf0d0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cartercc <cartercc@xxxxxxxxx> wrote:
Is it possible to compile a Lisp source file to an exe on an x86
machine running Windows?
Using gcc (on Windows) like this: [>gcc -o hello.exe hello.c] will
produce a file that I can run natively. Is it possible to do this same
with a Lisp file?
It depends on the Lisp implementation. You need to
consult its manual. LispWorks for example can save
images or create applications for delivery. The manual
describes how to do that.
Which Lisp implementation are you using?
When I run compile-file I don't get anything I can copy to another
machine (with a Lisp) and run.
When you use COMPILE-FILE, you get a piece of compiled Lisp code.
The Lisp code is not portable between different Lisp implementations,
but you can move the compiled code (the 'fasl' file) to another machine,
start the Lisp implementation there and load the compiled file.
So, when you have, say, LispWorks on both Windows machines
you can compile the file on one machine, copy the file to the
other machine and LOAD the file there into LispWorks.
If you have function calls in the file, they will be executed
upon loading - you can also call the defined functions
after loading the compiled file.
Thanks, CC
--
http://lispm.dyndns.org/
.
- Follow-Ups:
- Re: compiling a Lisp source to exe
- From: cartercc
- Re: compiling a Lisp source to exe
- References:
- compiling a Lisp source to exe
- From: cartercc
- compiling a Lisp source to exe
- Prev by Date: Re: RFC 1037 NFILE implementations around?
- Next by Date: Re: Lisp Design Patterns
- Previous by thread: compiling a Lisp source to exe
- Next by thread: Re: compiling a Lisp source to exe
- Index(es):
Relevant Pages
|