gcc: Explicit Register Variables

1 
1 6.45.5 Variables in Specified Registers
1 ---------------------------------------
1 
1 GNU C allows you to associate specific hardware registers with C
1 variables.  In almost all cases, allowing the compiler to assign
1 registers produces the best code.  However under certain unusual
1 circumstances, more precise control over the variable storage is
1 required.
1 
1  Both global and local variables can be associated with a register.  The
1 consequences of performing this association are very different between
1 the two, as explained in the sections below.
1 

Menu