Does D (DMD/Win) use ES, FS & GS for anything?
Walter Bright
newshound1 at digitalmars.com
Wed May 21 11:20:19 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?
I recommend save/restoring them. GS, for example, is used in Linux for
thread local storage. FS is used for exception handling. ES is used for
string instructions.
More information about the Digitalmars-d
mailing list