Re: Compiling a binary that uses quicklisp
Pascal Bourguignon <pjb-jNDFPZUTrfRkIYSJMME8NAC/[email protected]> Fri, 10 Feb 2023 13:22:44 +0100
| Newsgroups | gmane.lisp.ecl.general |
|---|---|
| Message-ID | <[email protected]> |
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__