Jump to content
  • Advertisement
Sign in to follow this  
Paradigm Shifter

Compile lisp to executable?

This topic is 4368 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I am teaching myself Common LISP using CLISP. I was wondering how you would build a binary executable that works outside the lisp environment, is there a way to do this? I tried looking in the help files but they aren't very helpful about this. I'm using the Windows version of CLISP, clisp-2.38. It's pretty painful typing in expressions directly, I really need to learn how to use emacs at some point.

Share this post


Link to post
Share on other sites
Advertisement
First, you don't have to type expressions directly. You can do something like clisp < mylispfile.lsp or clisp mylispfile.lsp. The former works just as if you typed everything in, the latter requires you to have print statements in your code (see print, pprint, etc).

To create executables, look through the CLISP FAQ, it's mentioned in there if I recall correctly.

Share this post


Link to post
Share on other sites
It's really funny that you posted this. I was about to post something tonight to ask people about their experiences will functional game programming.

But anyway, one technique is to compile it to C code, and then use gcc to compile that. I've been getting into Gambit Scheme, and it comes with an interpreter and compiler. I'm not sure about CLISP, but I'm sure there's a similar method. Maybe you could look into Scheme if not.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!