Mail Archives: djgpp/1997/12/11/16:32:02
Nate Eldredge wrote:
> Not quite. You will have to (save/restore) or (tell the compiler that you
> clobbered) registers which it expects to be preserved across function calls.
> Last I checked, this was %ebx, %esi, %edi and %ebp. IMHO, you should inform
This is correct, though you also have to preserve %ds and %es and
unfortuanatly, there is no way of telling gcc about clobbered segment
registers.
> the compiler about clobbering every register that you change, and it will
> then take appropriate action if necessary.
This is especially true if you start useing inline, __inline__ or -O3.
Bill
--
Leave others their otherness
- Raw text -