[D-runtime] druntime should be a shared library/DLL
Rainer Schuetze
r.sagitario at gmx.de
Fri Feb 15 14:34:24 PST 2013
On 08.02.2013 14:00, Andrei Alexandrescu wrote:
> On 2/8/13 2:18 AM, Rainer Schuetze wrote:
>> On 06.02.2013 23:15, Walter Bright wrote:> This would go a long ways
>> towards solving the dll issue, as then the gc
>> > and thread instances will automatically be shared.
>>
>> Time to dig up http://d.puremagic.com/issues/show_bug.cgi?id=4071 again.
>> I had implemented a working shared phobos.dll at that time. I can try to
>> bring it up to date if the approach seems appropriate.
>
> Yes please, that would be awesome.
>
> Andrei
I've spent some time on it and have created a Win32 druntime DLL. Stay
tuned for some pull requests to come after a few cleanups...
In contrast to the version in the bugzilla report (which linked the DM C
runtime library snn.lib into the DLL, but exported all its symbols) I
now used the shared C runtime library snd.lib which is the import
library for sccrt70.dll). I think that this is the better approach as it
allows sharing the C runtime with non-D DLLs. In addition it is easier
to translate to other C-runtimes.
Now I realize that this library and the DLL are not found in the free
dmc compiler distribution, but only in the commercial distribution.
Walter, is there a problem with also adding snd.lib and sccrt70.dll to
the DMD release?
More information about the D-runtime
mailing list