How to Include C Code From Scratch in Common Lisp
by FossilizedDaemon from LinuxQuestions.org on (#6NREN)
Hello everyone,
As an exercise in learning more about programming, and to help with another project of mine, I want to learn how to write bindings for C in Common Lisp. I know enough about both languages to read and understand the functions, but I have never written bindings in either and only have used CFFI in Common Lisp. I tried reading over their codebase to learn more, but it being a huge project I keep getting caught up in different parts. I looked around online for tutorials on including C from scratch in Common Lisp, but can only find resources on using CFFI. I was curious if anyone here had any sources or pointers. Nothing insane, just a simple "hello world" for using a basic C function from CL.
Thank you.
As an exercise in learning more about programming, and to help with another project of mine, I want to learn how to write bindings for C in Common Lisp. I know enough about both languages to read and understand the functions, but I have never written bindings in either and only have used CFFI in Common Lisp. I tried reading over their codebase to learn more, but it being a huge project I keep getting caught up in different parts. I looked around online for tutorials on including C from scratch in Common Lisp, but can only find resources on using CFFI. I was curious if anyone here had any sources or pointers. Nothing insane, just a simple "hello world" for using a basic C function from CL.
Thank you.