Re: compiling a Lisp source to exe
- From: Rainer Joswig <joswig@xxxxxxx>
- Date: Tue, 30 Sep 2008 14:34:52 +0200
In article
<032f841d-c497-43df-b247-927d544b04c3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
cartercc <cartercc@xxxxxxxxx> wrote:
On Sep 29, 3:28 pm, Rainer Joswig <jos...@xxxxxxx> wrote:
Well as I said, read the fine manuals.
As always very good advice, and as often happens, not done until
someone says RTFM. Okay, I did (and as a matter of fact had previously
printed the CMUCL manual).
I spent more than an hour last night trying to make it work, learned a
few things, but was unable to accomplish the task I set out. I just
need to get more familiar with these tools. I'm satisfied that this
can be done, and maybe in six months or so I will focus and getting it
done.
For me this works with CLISP - see this:
RJMBP:~ joswig$ clisp
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Welcome to GNU CLISP 2.45 (2008-05-15) <http://clisp.cons.org/>
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2008
Type :h and hit Enter for context help.
[1]> (defun my-main () (print 'my-program-start))
MY-MAIN
[2]> (EXT:SAVEINITMEM "/tmp/c1" :executable t :init-function 'my-main)
;; Wrote the memory image into /tmp/c1 (4,180,924 bytes)
1866456 ;
931158
[3]> (quit)
Bye.
RJMBP:~ joswig$ /tmp/c1
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Welcome to GNU CLISP 2.45 (2008-05-15) <http://clisp.cons.org/>
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2008
Type :h and hit Enter for context help.
MY-PROGRAM-START
[1]>
For CLISP for example:
http://clisp.cons.org/impnotes/image.html
see the :executable option to the function
EXT:SAVEINITMEM .
CMUCL:
http://common-lisp.net/project/cmucl/doc/cmu-user/extensions.html#toc47
See the :executable option to the function extensions:save-lisp .
My three competencies are Perl, Java, and C++. In the case of Perl,
all the machines I am responsible for have Perl. Ditto Java for the
JRE. As to C++, the compilers generate exe files directly.
I would like to achieve some competency in Lisp but Lisps do not
typically get installed on machines and do not have a 'LRE' (or do
they?) Therefore, the only easy way I can think of to run a script
written in Lisp is to compile and distribute it as an exe.
Thanks for your help, CC.
--
http://lispm.dyndns.org/
.
- References:
- compiling a Lisp source to exe
- From: cartercc
- Re: compiling a Lisp source to exe
- From: Rainer Joswig
- Re: compiling a Lisp source to exe
- From: cartercc
- Re: compiling a Lisp source to exe
- From: Rainer Joswig
- Re: compiling a Lisp source to exe
- From: cartercc
- compiling a Lisp source to exe
- Prev by Date: Re: compiling a Lisp source to exe
- Next by Date: Re: compiling a Lisp source to exe
- Previous by thread: Re: compiling a Lisp source to exe
- Next by thread: Re: compiling a Lisp source to exe
- Index(es):
Relevant Pages
|