[fpc-devel] OO rewrite - technical questions

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Jul 20 16:11:01 CEST 2010


Michael Schnell schrieb:

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

Since it turned out that loading segment registers is very time 
consuming on newer (i486+) processors, the memory management was changed 
from segmented (16 bit) into paged (32 bit flat). Segment registers 
never should be changed by an application, it should be left to the OS 
process/thread scheduler and thread-API calls.

DoDi




More information about the fpc-devel mailing list