Slide 1

Slide 1 text

Stack Frame Can we debug better?

Slide 2

Slide 2 text

Benefits from Understanding Stack Frame StackOveflow Answer

Slide 3

Slide 3 text

Formal Definition Stack frame is the packed information related to a function call. This information generally includes arguments passed to the function, local variables and where to return upon terminating (return address). A function call stack is composed of stack frames, and a stack frame is a thing that you put on the stack. Therefore , the height of the call stack determines the space or memory complexity.

Slide 4

Slide 4 text

Fibonacci , fib(n) fun fib(n: Int) : Int{ if(n<= 1) { return n // Base Case terminates } return fib(n-1) + fib (n-2) }

Slide 5

Slide 5 text

fib(4) fib(4) = fib(3) + fib (2) , executed in order of LIFO fib(1) fib(2) fib(3) fib(4) main()

Slide 6

Slide 6 text

No content