Regarding C and C++ (64)

8 Name: #!/usr/bin/anonymous : 2008-05-05 00:41 ID:Q5bXlgbg

>>7 Depends on the compiler, becuase that particular feature isn't standardized.

In SBCL you use:

(sb-ext:save-lisp-and-die "filename" :executable t)

In ECL you use:

(c::build-program "filename"
:lisp-files (list (compile-file-pathname "file.lisp" :type :object)))

In MZScheme you can use "mzc" to compile:

mzc --prim --exe src.ss

9 Name: #!/usr/bin/anonymous : 2008-05-05 00:44 ID:Heaven

Lispworks has a special "application builder" which not only compiles but prepares the application for distribution by removing definitions that aren't used. I think ACL has something similar.

The reason this "feature" isn't easy to figure out is because it isn't a normal part of Lisp application development. The fact that you're trying to figure this out first lends itself to the idea you're trying to figure out how to Lisp using your C/C++ knowledge. You probably want a build procedure kindof like C/C++ where you "build" your application as a separate state from developing it.

Don't do that. By the time you have an application you want to deliver in exe-form to other people, it'll be a lot easier to explain. Waste your time trying to figure this out now and you're just going to frustrate yourself needlessly, and you're going to avoid "getting" some of the most useful aspects of Lisp programming.

This thread has been closed. You cannot post in this thread any longer.