0

I`m troubling with constructing the runtime environment of using temporaries, local variables, parameters, locations reserved for return values, and return addresses, as well as the base pointer(bp), frame pointer(fp), and the stack pointer(sp). Below is the picture I got idea to draw the runtime env. But there is no recursion in the example. enter image description here


I tried with examples which use recursion, by the way I need to correct my tryouts, if you can comment or answer it would be a great help :)

Question 1

enter image description here

My Answer

enter image description here

Question 2

enter image description here

enter image description here

My Answer

enter image description here

Damika
  • 622
  • 2
  • 8
  • 17

0 Answers0