Question: what is the difference between stack pointer and frame pointer?
Answer: The stack pointer…is actually a register in the microprocessor that is used by push and pop. The Stack Pointer (SP) points to the top of the stack and the Frame Pointer (FP) points to the current active frame. ... The frame pointer is not a register and is used to hold the stack pointer's value before a function is called.