C1141: Ident <ident> cannot be allocated in global register

[ERROR]

Description

The global variable 'ident' cannot be allocated in the specified register. There are two possible reasons: The type of the variable is not supported to be accessed in a register. or The specified register number is not possible (e.g. used for parameter passing).

Example
  extern int glob_var @__REG 4; //r4 is used for parameters

  
Tips

Consider the ABI of the target processor.