tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Thread-local storage?


From: Charles Lohr
Subject: [Tinycc-devel] Thread-local storage?
Date: Tue, 3 Sep 2019 01:46:44 -0400

I've been trying to find a way out of this for a bit now.  I'd like to carry over some optimizations to a TCC host compile, but, I'm stuck with using pthread_key_create and friends.  This is a bit of an annoying solution and not optimal... And potentially even rougher on Windows.

It looks like all the defines for the sections are in tccelf.h.  Is there any hidden handshake sort of way to mark data for a thread local section. .tbss?  I've tried __attribute__((section(".tbss"))) to no avail; it just sticks them into .bss.  Any ideas?

Charles

reply via email to

[Prev in Thread] Current Thread [Next in Thread]