Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CS 261 Machine Organization

– Prof. Theys
Lab Week 5
Name: Jimmie Faulkner III UIN: 667170970

Q1 Contents of the stack when the 2nd instance of fib(4) is ready to remove its stack frame from
the stack. (60 points)

$rsp Ret addr(fib)


3 & 2(passing)
Foo(4)
4 (argument)
$rbp Rbp(fib)
Ret addr(fib)
Foo(6)
Rbp(fib)
Ret addr(main)
6
main
Rbp(main)

Q2 Please fill out the register contents: (40 pts)


rax: rsp: rdi: rbp:
Rax = 3

Rsp = 0x7fffffffe9a8

Rdi = 0

Rbp = 0x7fffffffe9a0

You might also like