externs and thread local storage
Robert Dewar
dewar@adacore.com
Sat Jul 8 02:56:00 GMT 2006
Richard Henderson wrote:
> On Sun, Jul 02, 2006 at 12:23:34PM -0700, Gary Funck wrote:
>> In my view, this is implementation-defined, and generally can vary
>> depending upon the underlying linker and OS technology. Further,
>> there is at least one known platform (IA64) which seems to not impose
>> this restriction.
>
> You're kidding, right? *All* targets have to generate different
> code for thread-local storage. If it didn't, it wouldn't be
> thread-local, would it?
That's not true, thread local storage can be done simply by mapping
hardware on some machines, where you swap maps on a context switch.
>
>
> r~
More information about the Gcc
mailing list