Mail Archives: djgpp/1997/06/10/13:50:57
I can't remember the answer, but you can find out by writing a simple C
function that requests too many register variables, say six. Compile it
(unoptimized) with the -S switch, then see which registers get saved in
the resulting assembly code.
William McGugan wrote:
>
> What registers do I have to save when using external assembler
> functions? I'm asking because my assembly functions crash with -O, and
> I thought it might be due to DJGPP using a register variable that was
> corrupted my asm functions.
>
> I have declared all my global variables and external functions as
> volatile, but that doesn't seem to help.
>
> Thanks.
>
> William McGugan
> http://www.netcomuk.co.uk/~wmcgugan
- Raw text -