Re: How to run from command line?

Jean Louis <[email protected]>
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
Dear Pascal,

Thank you for the answer, and I learn now new things. Imagine I did
not even look into the .fas and .lib files, but now I did. I like the
concept so much.


On Sat, Dec 24, 2016 at 12:04:52PM +0100, Pascal Bourguignon wrote:
> > clisp file.fas
> > 
> > Maybe is this approach here explained, the preferred way to run it
> > without clisp: https://www.cons.org/cmucl/doc/executable.html
> > 
> > I can use that one:
> > 
> > # mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
> > # echo ':lisp:E::fas::/usr/bin/clisp:' >
> > # /proc/sys/fs/binfmt_misc/register

I was not reading CLISP Implementation Notes in regards to this and I
found the way. First I am mounting the binfmt_misc and then applying
following:

sudo su - root -c "echo ':CLISP1:E::cl::/usr/bin/clisp:' >> /proc/sys/fs/binfmt_misc/register"
sudo su - root -c "echo ':CLISP2:E::lisp::/usr/bin/clisp:' >> /proc/sys/fs/binfmt_misc/register"
sudo su - root -c "echo ':CLISP3:E::fas::/usr/bin/clisp:' >> /proc/sys/fs/binfmt_misc/register"

And now I can simply run *.lisp and *.cl *.fas files directly from a
command line or through other programs.

> Otherwise, you can always generate an executable image, for a
> stand-alone program.  It would be easier than concatenating .fas
> files, if there are dependencies.

How would I create executable image? How do you do it?

Jean

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.