I declare a global variable:
__global_reg(5) pCPUCB_t Cur_CPUCB;
Then I assign a value to this variable:
Cur_CPUCB = &CPUCB[0];
But a compiler doesn't generate code for this assigments! It generates the code only if I assign and then use the variable in same source code file, although a global variable is global and, therefore, can be assigned or used by any of source code modules. Is this a bug of the compiler?
I use armcc ver. 5.05.