Mail Archives: djgpp/1999/07/04/19:25:17
Batchex wrote:
> 1. Does DJGPP compiled programs use FS and GS registers in any way ?
We had a discussion of that here a while ago. You can see an
answer in that thread at
http://x31.deja.com/[ST_rn=ps]/getdoc.xp?AN=439584610
There is lso a place there to click to get access to the whole
thread.
If I understood that thread correctly, neither compiled code
nor library routines use fs. That means you can decide amoung
your own routines whether to treat it as global or saved or
temp. Compiled code doesn't use gs but library routines use it
and don't save it.
> 2. Does DJGPP use register variables when optimizing is on ? If it
> does, what registers does it use ?
Whatever registers it can. Usually that means ebx, esi and edi
because they are preserved across subroutine calls; However,
sometimes it may detect that a variable's active scope includes no
subroutine calls and it may use edx, ecx and I think even eax as
register variables.
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -