AnsweredAssumed Answered

Analyze stack for MPC5604B with Codewarrior 2.7

Question asked by Michael Tang on May 11, 2011
Latest reply on May 16, 2011 by Michael Tang

Dear All,

 

I am using Freescale C/C++ Compiler for Embedded PowerPC (version 4.3 build 182) to build my project on MPC5604B. I can read stack information from MAP file, e.g..

 

_stack_addr 40003000

_stack_end  40002a00

 

Does it mean stack bottom is $40002a00 and stack pointer is initialized to 0x4000300? I checked my code, it seems that r1 is used to save stack pointer and the stack grows from high address to low address. Is it right? If there are any documents (notes, manual, guide, etc) describe more details about how does the compiler use the stack of MPC5604B?

 

Thanks in advance for your help!

 

Best Regards

Michael Tang

Outcomes