On Friday, 10 March 2017 at 06:41:46 UTC, M-exe wrote:
I found that D is great language, but for my own reasons I'm trying to use it without TLS at all.

Can the TLS directory be avoided? (compiling on windows)

I don't know what you mean by the TLS directory, can you explain?

I mean, can it avoided without losing GC and main language features?

You could probably modify druntime so that it doesn't use any Thread-Local Storage, but Phobos uses it extensively, as global and static variables are put in TLS by default since D 2.030:

https://dlang.org/migrate-to-shared.html

Are you against emulated TLS also? If not, I have modified dmd, ldc, and druntime to use the same emulated TLS scheme Walter came up with for OS X, for my Android port:

https://github.com/dlang/dmd/pull/3643
https://github.com/ldc-developers/ldc/pull/1447
https://github.com/dlang/druntime/pull/784

You may be able to use something similar on Windows, depending on how feasible such an emulated TLS scheme is there and if you want to dig into these details.
  • TLS M-exe via Digitalmars-d-learn
    • Re: TLS rikki cattermole via Digitalmars-d-learn
      • Re: TLS M-exe via Digitalmars-d-learn
        • Re: TLS rikki cattermole via Digitalmars-d-learn
          • Re: TLS M-exe via Digitalmars-d-learn
            • Re: TLS bauss via Digitalmars-d-learn
              • Re: TLS sarn via Digitalmars-d-learn
                • Re:... M-exe via Digitalmars-d-learn
                • Re:... Rainer Schuetze via Digitalmars-d-learn
    • Re: TLS Joakim via Digitalmars-d-learn

Reply via email to