AnsweredAssumed Answered

CodeWarrior local variable storage location

Question asked by on Mar 19, 2017
Latest reply on Mar 21, 2017 by

In debug,I find that address of  local variable is not Stack。below the figure :

And the local variable define  in function  as follows:

uint8_t i = 0u , j = 0u;


The Ram and Stack define in mc9s12zvl32.prm as follows :

 RAM           = READ_WRITE  0x001100 TO 0x0013FF;

SHADOW_RAM    = READ_WRITE  0x001000 TO 0x001100;


So,I want to know how to define local variables are stored in the stack?