We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 ?
Hi,
Here there is some information about the ARM Stack
You'll have to use a : "gcc -S" to get assembler output from your C programs directly