D for Game Development

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 9 02:15:37 PDT 2015


On 8/9/2015 2:04 AM, Johannes Pfau wrote:
> That statement is too broad to be true ;-) GCC's emulated TLS doesn't
> have adjacent memory for TLS variables and it works fine with D
> (and the GC). It is a little bit slower than if we had adjacent memory.
> OTOH this approach works with all kinds of shared libraries and
> requires very little system specific code (only need some pthread tls
> mechanism). And it is compatible with GCCs emulated TLS, so you can
> even have extern TLS variables shared between C and D with emutls.

The reason I did the special support for TLS on OSX is because gcc at the time 
did not support TLS in any way shape or form. Now that it does, dmd should 
change to do it the same way.



More information about the Digitalmars-d mailing list