This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
about TLS and GCC
- From: Jonathan Wilson <jonwil at tpgi dot com dot au>
- To: gcc at gnu dot org
- Date: Mon, 20 Oct 2003 21:10:16 +0800
- Subject: about TLS and GCC
After looking into GCC, its becoming clear that TLS as implemented by GCC
(and by the various unix-ish platforms and libraries that provide the
runtime support for it) and TLS as implemented by Visual C++ and the
Windows Kernel are totally different and its not going to be possible to
implement win32 TLS as a special case in the existing TLS handler.
For starters, win32 doesnt have any "TLS access models", it only ever
supports one model. (but because there is no clear documentation on just
what the different access models in GCC actually mean, I cant say if win32
matches any of them or none of them at all)
Any help to implement TLS in GCC would be much appreciated :)
To be fair, I suspect that many of the things that make GCC so complex come
from the need to support all sorts of different language front ends, target
back ends & host systems while at the same time using as little
language-specific, target-specific and host-specific code as possible.