How to embed SBCL in a C++ app?
Posted: Tue Aug 05, 2008 9:10 am
Has anyone had experience embedding SBCL in a C++ app? The C++ app has the main(), and I would like to be able to start up or embed SBCL in the C++ app without the use of pipes or other funky cross process mechanisms. I'm looking for a static or DLL link of SBCL into my game. For reference, here's how I am currently using Corman CL:
1) C++ .exe starts up
2) App calls LoadModule("lisp-file-compiled-into-dll.dll")
3) That dll implicitly loads CormanLispServer.dll (The corman runtime engine)
4) There is also a .img file that contains all the startup heap stuff, and I think that it also is implicitly loaded in step #3.
I am having trouble locating a tutorial on how to embed sbcl in another app directly. Your helpful suggestions are much appreciated!
1) C++ .exe starts up
2) App calls LoadModule("lisp-file-compiled-into-dll.dll")
3) That dll implicitly loads CormanLispServer.dll (The corman runtime engine)
4) There is also a .img file that contains all the startup heap stuff, and I think that it also is implicitly loaded in step #3.
I am having trouble locating a tutorial on how to embed sbcl in another app directly. Your helpful suggestions are much appreciated!