From: Larry Elmore
Subject: CMUCL question
Date: 
Message-ID: <8dtfdq$cj4$1@news.campuscwix.net>
This might be a dumb question, but does CMUCL have the ability to generate
stand-alone executables? I've been all over the manual and the man pages and
can't find anything on the subject, so I expect not, but I'd be quite happy
to learn I'm wrong (and how to do it).

Thanks,
Larry

From: Daniel Barlow
Subject: Re: CMUCL question
Date: 
Message-ID: <873docuavv.fsf@tninkpad.telent.net>
"Larry Elmore" <········@montana.campuscwix.net> writes:

> This might be a dumb question, but does CMUCL have the ability to generate
> stand-alone executables? I've been all over the manual and the man pages and
> can't find anything on the subject, so I expect not, but I'd be quite happy
> to learn I'm wrong (and how to do it).

It's certainly an, um, controversial question, and usually involves a
discussion of exactly what you mean by "standalone executable". 

The short answer that skirts this discussion (for which I refer you to
DejaNews) is "no, but you can dump a custom image (see the
documentation for SAVE-LISP) and start it with a one-line batch file".
Alternatively, if you're using Linux it's possible to run .x86f files
from the command line if you have a system built with "Kernel support
for MISC binaries" (CONFIG_BINFMT_MISC).  I can't presently find the
document that describes how to set this up, but I'm sure that its
somewhere in the EncyCMUCLopaedia - look for any posting here by Paolo
Amoroso and follow the link in his signature.


-dan
From: Paolo Amoroso
Subject: Re: CMUCL question
Date: 
Message-ID: <FkAEOR1uJqWKvp4czUqPwimDjNF+@4ax.com>
On 23 Apr 2000 15:53:24 +0100, Daniel Barlow <···@telent.net> wrote:

> for MISC binaries" (CONFIG_BINFMT_MISC).  I can't presently find the
> document that describes how to set this up, but I'm sure that its
> somewhere in the EncyCMUCLopaedia - look for any posting here by Paolo
> Amoroso and follow the link in his signature.

Hmmm... I don't seem to remember documents in the EncyCMUCLopedia
describing how to set up the Linux kernel so that it can run CMU CL x86
binaries.


Paolo
-- 
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/
From: Eric Marsden
Subject: Re: CMUCL question
Date: 
Message-ID: <wziem7ve72f.fsf@mail.dotcom.fr>
>>>>> "db" == Daniel Barlow <···@telent.net> writes:

  db> Alternatively, if you're using Linux it's possible to run .x86f
  db> files from the command line if you have a system built with
  db> "Kernel support for MISC binaries" (CONFIG_BINFMT_MISC).

should go something like this:

  # echo ':lisp:E::x86f::/usr/bin/lisp-start:' > /proc/sys/fs/binfmt_misc/register
  # chmod a+x whatever.x86f
  # ./whatever.x86f

  
cf <URL:http://www.kernelnotes.org/doc22/binfmt_misc.txt>
  
-- 
Eric Marsden
From: Paolo Amoroso
Subject: Re: CMUCL question
Date: 
Message-ID: <hzoEOa0vPZiS6ykCo5kHw1Vx9q16@4ax.com>
On Sat, 22 Apr 2000 18:17:57 -0600, "Larry Elmore"
<········@montana.campuscwix.net> wrote:

> This might be a dumb question, but does CMUCL have the ability to generate
> stand-alone executables? I've been all over the manual and the man pages and

In most cases you may deliver just the following files to the user:

- the CMU CL executable
- a Lisp image dumped with your application
- a shell script that invokes the CMU CL executable, feeds it the 
  appropriate image ("-core" command line option) and calls ("-eval" 
  option) a function that starts your application.


Paolo
-- 
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/