Quantcast
Channel: ARM Connected Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 6005

Way to identify the static stack frame size in a program

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 6005