ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Is it possible to compile Lisp code into an executable binary?
I know the COMPILE-FILE function creates a *.fasl (Fast Load) file, but I want to create a binary executable, so, suppose I make a hello world program, like so:
;;; Print's hello world on the screen
(format t "Hello, World!~%")
if - in the REPL - I go:
CLISP> (compile-file #p"helloworld.lisp")
All I get is helloworld.fasl.
Is there any way I can generate something like "helloworld" that I can just run? Even if I have to write a script that takes the *.fasl or *.lisp file and throws it through several built in translators, compilers and/or assemblers?
I really like Lisp, and I've written alot of extremely useful programs in it, I just want to be able to compile binaries for my friends and such, and provide downloadable pre-compiled binaries on my soon-to-be-available website...just so that the end user doesn't necessarily need to have a Lisp REPL installed.
I looked into it and it's quite a lot of hassle.
I believe you'd have to change lots of code and put loads of
type definitions and pragmas in. I think there's an issue with macros too.
I don't think it's straightforward.
Not in clisp anyway.
google it though.
Well, I am a lazy person and it seemed to spoil the pleasure of
lisp programming to worry about type definitions and such.
I think there were other implementations more suited than clisp
but then clisp is quite full featured.
As far as I know LISP is a very fast with it's interpreter. I do not really think that there is any point in compiling the code unless you want to publish to code. (But you do)
I am pretty sure that installing the a free interpreter on linux systems is fairly easy (apt-get or yum or whatever) and problem solved.
I used to struggle with this and I could not find any usable ideas out there. Maybe I wasn't looking hard enough.
There is one solution I can think of if you can't compile it.
Create a package that contains the REPL and the app itself too. No need for compiling, fairly easy to install and your friends can use it.
Last edited by vargadanis; 11-30-2006 at 12:11 PM.