Compiling a binary that uses quicklisp
Pascal Bourguignon
pjb at informatimago.com
Fri Feb 10 12:22:44 UTC 2023
Le 10/02/2023 à 01:07, Brandon Hale a écrit :
>> ecl produces elf binaries. You will want to compile, and link all
>> your code into this executable file. So you don't need to load asdf or
>> anything else at run-time (in the prologue-code). Instead, you load
>> asdf, quicklisp, and your code, when you generate the executable with
>> make-build.
>>
>> Have a look at the hello-world project
>> https://gitlab.com/informatimago/hw/
>> to see how to produce executables.
>>
>> In particular, in the case of ecl:
>>
>> https://gitlab.com/informatimago/hw/-/blob/master/generate.lisp#L216
> Thank you, I will look into this link. I must admit, I don't know much C
> at all, but it looks like the code I really need is all in Common Lisp.
> I will study all of this and try to make sense of what is happening
> here. It looks like there is a lot to it!
>
Don't be confused by the various implementations of helloword in that
project. Look at the Makefile, only the lisp files are used when
compiling with ecl.
--
__Pascal Bourguignon__
More information about the ecl-devel
mailing list