This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Way to identify the static stack frame size in a program

Hi Experts,

What is the way to identify the static stack frame size of the each routines in the C program ?

For example, in GCC ARM mode compiled c program the disassembly code is generated and in that there will be an instruction as follows

sub sp,sp, #10


where #10 is the stack frame size of the routine.

But in case of thum mode compilation or arm-thumb interworking, I am unable to find this instruction rather it is formed as

push/mov.w   instructions.

Is there any tool or way to detect the static stack frame size of each routines ?

0