On 08/06/2010 12:31 AM, Jonas Maebe wrote:
(but keep in mind that the only reason that intialising/finalising
threads not started via the FPC rtl now works under Unix is exactly
because every threadvar access requires a call into a helper routine).
Of course this is why I started the thread. The C compilers seem to work
more efficient on that behalf and thus it might be viable to improve
FPC. To do that the details of how segment registers are used with the
X86/32 architecture in Linux and Windows needs to be thoroughly
understood. (In fact I still don't know how the compiler should
construct a pointer to a threadvar in Linux).
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel