OpenBSD port of dmd?

Johannes Pfau nospam at example.com
Sat Mar 17 11:38:25 PDT 2012


Am Sat, 17 Mar 2012 07:04:20 -0700
schrieb Sean Kelly <sean at invisibleduck.org>:

> On Mar 17, 2012, at 1:25 AM, Johannes Pfau <nospam at example.com> wrote:
> 
> > Am Fri, 16 Mar 2012 14:37:43 -0700
> > schrieb Sean Kelly <sean at invisibleduck.org>:
> > 
> >> 
> >> OSX pre-Lion doesn't support __thread either, so DMD rolls its own
> >> there.  The same functionality could probably be used for OpenBSD.
> >> 
> > 
> > That's interesting. GCC does have emulated TLS as well but GCC's
> > implementation doesn't work with the GC. I guess the dmd tls
> > emulation is in the backend, so nothing GDC could use?
> 
> There's a bit of blackened support to denote tls data, but the rest
> is in library. Look at core.thread. 

Thanks.
I guess this could be supported in gdc (maybe it's already supported on
OSX? I'll have to look that up), it doesn't look too complicated. But it
won't work for dynamic libraries and/or dlopen, right?


More information about the Digitalmars-d mailing list