RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)
Johannes Pfau via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 5 10:27:04 PDT 2015
Am Tue, 05 May 2015 08:41:13 -0700
schrieb Dan Olson <zans.is.for.cans at yahoo.com>:
> Iain Buclaw via Digitalmars-d <digitalmars-d at puremagic.com> writes:
>
> > If the cost is too much (ie: there is no heap), then we should be
> > able to stop emutls from kicking in by preventing the D frontend
> > from returning true on isThreadLocal calls.
>
> Iain, I think something like this would be good in GDC. Makes it so
> much easier to compile for no thread environments.
I'm not really sure about this. It's trivial to implement but it
generates a semantic difference which harms code portability (e.g. if
you have code where you want a global variable, don't mark it as
__gshared and then move to an environment with threads).
More information about the Digitalmars-d
mailing list