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.
One thing I am confused about with this are all of the #-(and) in generate.lisp. I know the #+ecl means only run this in ecl, but what do the #-(and)'s do?
Thank you very much for your help,
Brandon Hale
On 2/10/23 07:22, Pascal Bourguignon wrote:
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.