[fpc-devel] threadvar implementation

"Vinzent Höfler" JeLlyFish.software at gmx.net
Thu Aug 5 19:28:53 CEST 2010

Michael Schnell <mschnell at lumino.de>:

> 2) ES: in my tests I modified ES in ASM code in a Delphi program and 
> caused it to crash by this, So the Delphi compiler seems to use it (for 
> whatever purpose)

No surprise, in any sane environment DS should be equal to ES. Most notorious instruction requiring that would be "movsb/w/d" which is using ES: for the target address. AFAIR a segment override is possible there, but only for the source address.

Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

More information about the fpc-devel mailing list