3.6.1. Address of a register variable

The address of a variable with register storage class can be taken.

Errors

The compiler generates a warning if you take the address of a variable with register storage class.

Example

void foo(void)
{
    register int i;
    int *j = &i;
}
Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential