CS计算机代考程序代写 prolog assembly Lifetime of Local Variables and Arguments

Lifetime of Local Variables and Arguments
Allocation:
Deallocation:
A function’s activation frame includes
 _____________  _____________  _____________
Why isn’t the Heap the best choice for activation frame?
 ______________________________________
 ______________________________________ Structure of Activation Frames/Accessing Variables/Arguments
Some Implications
Activation Frame Details for SIM 213
Stack Pointer: Return address: Return value:
Stack Management and Division of Labor
Before call caller prologue:
Function call callee prologue:
Run procedure callee epilogue:
Return
caller epilogue:

The Runtime Stack
What does the runtime stack look like for the code given?
Write out the assembly code for the caller & callee prologues and caller & callee epilogues for
loo(10,15)
Caller
Caller
Prologue
Epilogue
Callee
Callee
How big is the activation frame for boo()?
Write out the assembly code for goo?
For more practice write out all the other functions epilogues, prologues and function body