...

/

Functions in Frame Pointers and Local Variables

Functions in Frame Pointers and Local Variables

Learn how the frame pointers are updated during function prolog and epilog.

Function prolog

The sequence of instructions that initializes the %RBP register and makes room for local variables is called a function prolog. One example is pictured below, where func calls func2, which has one local variable var. Sometimes saving necessary registers is also considered part of a function prolog.

Access this course and 1400+ top-rated courses and projects.