How to compile SBCL as a DLL

Discussion of Common Lisp

How to compile SBCL as a DLL

Postby pTymN » Fri Aug 08, 2008 8:34 am

Hello,

A few days ago, I asked how to embed SBCL into a C++ app, and among other things, I was warned that SBCL makes too many assumptions about owning memory, but this cannot be completely true if it is able to load ordinary DLLs, which almost certainly do their own memory management. I'm pretty newbie about open source contributions (usually I just anon-cvs fetch stuff and build). Does anyone here know enough about the SBCL build process to know if it is reasonable to build SBCL as an .exe and then somehow apply a patch that uses that SBCL to compile a DLL version? ECL's performance numbers are disappointing, even compared to CormanCL, but I would really like to move to a frequently updated and speedy version of Lisp, and contribute new stuff to OSS at the same time. Is there any interest? I work in the video game industry, so a Lisp that plays well on Win32 machines is important, regardless of my personal feelings towards Win32... Any takers?

-Tim Kerchmar
pTymN
 
Posts: 20
Joined: Sat Jun 28, 2008 7:15 am
Location: Columbia, SC

Re: How to compile SBCL as a DLL

Postby jast » Fri Aug 08, 2008 12:09 pm

Hi,

I think the best thing to do is ask directly to the SBCL developers, mainly the ones who work in the win32 port.

Cheers.
jast
 
Posts: 2
Joined: Wed Jul 09, 2008 1:52 am
Location: Portugal

Re: How to compile SBCL as a DLL

Postby nuntius » Sat Aug 09, 2008 10:56 am

Disclaimer: I'm not an SBCL dev.

That said, the #1 SBCL issue on windows has been the clash with DLLs loaded to random spots in memory, thus preventing SBCL from obtaining a nice large contiguous heap. There has been work on this issue, but I don't think it was fully resolved. Ask on sbcl-help or sbcl-devel for details.

Would it be possible to work this the other way? e.g. SBCL loads your game code as a DLL?
User avatar
nuntius
 
Posts: 498
Joined: Sat Aug 09, 2008 10:44 am
Location: Burlington, MA


Return to Common Lisp

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests