Does D (DMD/Win) use ES, FS & GS for anything?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed May 21 05:53:33 PDT 2008


Me Here wrote:
> The subject pretty much says it all. I'd like to use one (or if possible, two)
> of these registers in some assmbly code and want to know if I need to preserve
> them or if D will just ignore them and leave them untouched between callbacks
> into the assembler code?

ES is used by certain instructions the compiler generates (movs & 
friends, IIRC)
Windows exception handling uses FS.
I'm not sure about GS (nor FS on Linux, but you specified Windows so you 
don't care).



More information about the Digitalmars-d mailing list