HW23
COP-3402
Draw the stack frames for the following two functions (after running main and calling
f, but beforefreturns). Remember to include:- The return address.
- The old base pointer.
- The local variables.
function main localVariables retval x x := 3 retval := call f a return x end function
function f localVariables x parameters x x := 2 return x end function
- Write
movinstruction(s) that implementx := 2above in the functionf. - In the x86 64 System V ABI, how are parameters passed?