register int variable being written to/read from stack

Ian Lance Taylor iant@google.com
Wed Jan 21 07:24:00 GMT 2009


baver <baver@thebeever.com> writes:

> A sample code listing is at the bottom of the email, as well as the lines we've added to opcodes/mips-opc.c for our opcodes.
> 
>  
> 
> Anyone know how to stop the register from being stored and read from on the stack? We've defined it as
> 
> volatile register int idx asm("s0");

Show us the change you made to the MD file, or, if you didn't make a
change, show us the asm statement you are using.


> Anyone know how to stop the register from being stored and read from on the stack? We've defined it as
> 
> volatile register int idx asm("s0");

Are you doing this inside or outside of a function?  That is, a global
variable or not?  The two cases act quite differently, as discussed
briefly in the documentation.

Ian



More information about the Gcc mailing list