If I had my way

Jacob Carlborg doob at me.com
Tue Dec 13 05:29:09 PST 2011


On 2011-12-13 13:42, Martin Nowak wrote:
> On Mon, 12 Dec 2011 12:31:44 +0100, Jacob Carlborg <doob at me.com> wrote:
>
>> On 2011-12-10 22:32, Walter Bright wrote:
>>> On 12/10/2011 12:53 PM, maarten van damme wrote:
>>>> Could also someone shed some light on creating shared library's on
>>>> linux? there
>>>> was some news about -fPIC beeing fixed but no real confirmation.
>>>
>>> Turns out there was a bug where EBX was not set correctly when calling a
>>> function that existed in a shared library. This bug was fixed. So we're
>>> ready to try again at creating a shared library with dmd.
>>
>> That's great to hear. We'll see how far we get this time.
>>
>
> What's the state of the OSX dylib code in dmd and druntime?

Most of the needed code is there but it's not "activated". I've been 
trying to get it to work several times but it's always something that I 
can't get to work.

I currently have problems with TLS. Except from that it seems like it 
works, but there are several improvements that could be made. I have

I have a fork of druntime where you can see my progress, I've rewritten 
what's already in druntime: 
https://github.com/jacob-carlborg/druntime/tree/dylib

What's needed or can be improved:

* Cleanup module infos, exception handling tables and TLS when a dynamic 
library is unloaded

* A low level associative array and regular array that can be used 
without having druntime full initialized

I wrote to the DMD internals mailing list about this: 
http://www.mail-archive.com/dmd-internals@puremagic.com/msg02701.html

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list