[fpc-devel] OO rewrite - technical questions

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jul 20 14:08:15 CEST 2010


On 20 Jul 2010, at 14:03, Michael Schnell wrote:

> BTW what about GS ? If same is just restored after preemption, this could be used by the compiler to point to the Threadvar area.

Only if you are guaranteed that no externally called code will modify it. In that case, you FPC itself also save/restore that register before and after calling any potentially non-FPC code, since other applications may make the same assumption. If you don't make that assumption, at the very least you still have to reload it after any call to potentially non-FPC code.


Jonas


More information about the fpc-devel mailing list