[Openmcl-devel] Executing CCL from within C/C++

R. Matthew Emerson rme at clozure.com
Mon Jul 25 16:23:20 PDT 2016


> On Jul 25, 2016, at 6:36 PM, Josh Hamell <jhamell at sift.net> wrote:
> 
> We have had great experiences using CCL on a number of different
> projects in different capacities, and are now looking at a very niche
> use case.
> 
> Within Linux, is it possible to compile a C/C++ program against
> lisp-kernel headers, link against the binary (lx86cl64), and execute
> arbitrary Lisp code as input char* s-expressions?  Naively, I can peruse
> the exposed functions using objdump, and would like to believe in a
> simple way to start the interpreter, load an existing heap image, and
> run, all through simple C.  This is sort of a "reverse CFFI" - our issue
> is that the C code needs to be the application entry point, without
> resorting to separate processes.

I'm afraid that as currently written, CCL doesn't support this.  That is, you can't use CCL as a linkable library as you describe.




More information about the Openmcl-devel mailing list