Shared Libraries [was Re: D 1.076 and 2.061 release]

Walter Bright newshound2 at digitalmars.com
Wed Jan 9 02:38:30 PST 2013


On 1/9/2013 2:28 AM, Jacob Carlborg wrote:
> On 2013-01-09 11:26, Jacob Carlborg wrote:
>
>> I think it sounds like that but I don't know. I'm just trying to figure
>> out how TLS is implemented on Mac OS X 10.7+.
>
> Also, there's nothing else that calls this tlv_get_addr function or the thunk so
> I'm guessing it's the compiler that calls it.

Watcha do is something like this:

__thread int x;
int foo() { return x; }

Compile, disassemble, and look at the code generated and the fixup records. Then 
there's no need to guess :-)


More information about the Digitalmars-d-announce mailing list