c++ - weird ebx register behaviour
- mjs NOSPAM.gmx.de (Mark Junker) (6/6) Jun 16 2003 Hi,
- roland (9/19) Jun 17 2003 16 bit models:
- Heinz Saathoff (3/7) Jun 18 2003 Are fs dn gs used at all by the compiler (or RTL)?
- roland (6/18) Jun 18 2003 That is on my Symantec old docs. ( yes paper doc ! )
- Heinz Saathoff (4/6) Jun 18 2003 That's what I also discovered. But I am not sure about the RTL where
- Walter (5/11) Jun 18 2003 FS is used by the Win32 operating system for thread-specific data, and i...
- Heinz Saathoff (3/5) Jun 19 2003 What is a SEH stack frame? Has it to do with exception handlers (EH)?
- Walter (6/11) Jun 20 2003 is
Hi, while I wrote a module using inline assembler, I saw that DMC assumes that EBX will never change. Are there any other registers that must not be altered while compiling with -mn? Best regards, Mark Junker
Jun 16 2003
Mark Junker wrote:Hi, while I wrote a module using inline assembler, I saw that DMC assumes that EBX will never change. Are there any other registers that must not be altered while compiling with -mn? Best regards, Mark Junker16 bit models: must preserve si,di,bp,sp,ss,cs,ds direction flag (df) must stay forward 32 bit models: must preserve ebx,esi,edi,ebp,esp,ss,fs,gs,cs,ds direction flag (df) must stay forward direction flag (df) must stay forward roland
Jun 17 2003
roland schrieb...32 bit models: must preserve ebx,esi,edi,ebp,esp,ss,fs,gs,cs,ds direction flag (df) must stay forwardAre fs dn gs used at all by the compiler (or RTL)? - Heinz
Jun 18 2003
Heinz Saathoff wrote:roland schrieb...That is on my Symantec old docs. ( yes paper doc ! ) Never seen fs dn gs used when i disassembled. May be Walter kept them at harm lenght just in case .. by roland32 bit models: must preserve ebx,esi,edi,ebp,esp,ss,fs,gs,cs,ds direction flag (df) must stay forwardAre fs dn gs used at all by the compiler (or RTL)? - Heinz
Jun 18 2003
roland schrieb...Never seen fs dn gs used when i disassembled. May be Walter kept them at harm lenght just in case ..That's what I also discovered. But I am not sure about the RTL where some support functions are written in assembler. - Heinz
Jun 18 2003
"Heinz Saathoff" <hsaat bre.ipnet.de> wrote in message news:MPG.195a519c170ac08c9896c5 news.digitalmars.com...roland schrieb...FS is used by the Win32 operating system for thread-specific data, and is generated by the compiler for SEH stack frames. DS, of course, points to the data segment. I don't know what GS is used for.32 bit models: must preserve ebx,esi,edi,ebp,esp,ss,fs,gs,cs,ds direction flag (df) must stay forwardAre fs dn gs used at all by the compiler (or RTL)?
Jun 18 2003
Walter schrieb...FS is used by the Win32 operating system for thread-specific data, and is generated by the compiler for SEH stack frames.What is a SEH stack frame? Has it to do with exception handlers (EH)? - Heinz
Jun 19 2003
"Heinz Saathoff" <hsaat bre.ipnet.de> wrote in message news:MPG.195ccc6abe340d149896c7 news.digitalmars.com...Walter schrieb...isFS is used by the Win32 operating system for thread-specific data, andStructured Exception Handling.generated by the compiler for SEH stack frames.What is a SEH stack frame?Has it to do with exception handlers (EH)?Yup. Compile some code with exceptions enabled, put some classes with destructors on the stack, and OBJ2ASM it.
Jun 20 2003