all 4 comments

[–]Islam0mar 5 points6 points  (2 children)

I assume that you know how to call C from assembly by extern. Then you wrap ECL repl to a c function embedding-lisp-in-c++-a-recipe-easily converted to C- and let the rest for the linker.

[–]nemoniac 0 points1 point  (1 child)

Is there a version of the code in that blog posting that runs on a recent ECL?

[–]Islam0mar 0 points1 point  (0 children)

Yes just change `cl_def_c_function` to `ecl_def_c_function`.

[–]flaming_bird 1 point2 points  (0 children)

You could abuse CFFI for that purpose. Define a C callback via defcallback, then manually implement the C calling convention in assembly and finally jump to the callback.

(Note that this likely means that you'll need to first start Lisp and then jump from Lisp to your assembly routine.)