Is D Dead?
Araq
rumpf_a at web.de
Thu Sep 16 05:59:57 UTC 2021
On Wednesday, 15 September 2021 at 14:48:56 UTC, IGotD- wrote:
>
> TLS doesn't play well with embedded systems. TLS is an OS
> related feature and not all OS:es support TLS among the small
> embedded ones. In general, we should avoid TLS as much we can
> because it's horrible under the hood.
>
To emulate TLS allocate a block of memory at the top/bottom of
your stack and use a bitmask on your stack pointer in order to
access it. No OS support required.
More information about the Digitalmars-d
mailing list