267
Stack growing direction
jsr sub1
4bytes
24 byt es(PC+FL G+size of re gisters used
stack size used by sta_tsk)
36by tes(P C+F LG+size of registe rs used
stack size used by prcv _mbx )
sta_t sk
prcv_mbx
40by tes
When use reg ister R2R0, R3 R1,A0(12 by tes)
Figure 2.3:Example of Use Stack Size Calculation