8.33 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.

Examples

void foo(void)
{
    register int i;
    int *j = &i;
}
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.