I have been trying to figure out how to compile lisp to a native
executable file on Windows, but so far, I can't figure out how.
Using GCL, I can get it to make hello.lisp into hello.c, hello.h, and
hello.o, but I'm not sure how to get these to compile, as they give
multiple compile-time errors.
If GCL isn't the way to go, are there any other lisp compilers that can
make a exe file?
Thanks,
Kevin
On 16 Apr 2005 09:53:57 -0700, <········@gmail.com> wrote:
>
> If GCL isn't the way to go, are there any other lisp compilers that can
> make a exe file?
corman, ecl, lispworks, allegro... Try GOOGLE, it really is your
friend, it's less characters to type, and the results are immediate.
--
Everyman has three hearts;
one to show the world, one to show friends, and one only he knows.
From: =?ISO-8859-15?Q?Andr=E9_Thieme?=
Subject: Re: Compiling to an EXE File
Date:
Message-ID: <d3trup$2k4$2@ulric.tng.de>
GP lisper schrieb:
> Try GOOGLE, it really is your friend
Or http://www.alltheweb.com/
Andr�
--
"Kkaa" <········@gmail.com> writes:
> I have been trying to figure out how to compile lisp to a native
> executable file on Windows, but so far, I can't figure out how.
>
> Using GCL, I can get it to make hello.lisp into hello.c, hello.h, and
> hello.o, but I'm not sure how to get these to compile, as they give
> multiple compile-time errors.
"hello.o" is an "object" file, the same thing that results from
compiling a C program, for example. You need to link it with
the appropriate other libraries (eg. the Lisp runtime support)
to make an executable program.
But the usual way to create a stand-alone executable file
from GCL is to simply call the function SYSTEM:SAVE-SYSTEM.
> If GCL isn't the way to go, are there any other lisp compilers
> that can make a exe file?
Don't all of them?
Greetings!
As others have said, with GCL,
option 1 -- (load "hello.o")(si::save-system "hello.exe") -- big
"statically linked" standalone binary -- GCL not
needed at runtime.
you also have
option 2 -- gcl -batch -load hello.o -- analogous to having ld.so
dynamically link at runtime your small binary to the system libraries,
e.g. libc/saved_gcl -- GCL needed at runtime.
There are a variety of ways we are cnsidering extending this to make a
hello.o-like small file which is self loading upon execution.
Take care,
"Kkaa" <········@gmail.com> writes:
> I have been trying to figure out how to compile lisp to a native
> executable file on Windows, but so far, I can't figure out how.
>
> Using GCL, I can get it to make hello.lisp into hello.c, hello.h, and
> hello.o, but I'm not sure how to get these to compile, as they give
> multiple compile-time errors.
>
> If GCL isn't the way to go, are there any other lisp compilers that can
> make a exe file?
>
> Thanks,
> Kevin
>
--
Camm Maguire ····@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah