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 resulting in the initialization of the sp register, saving x29 and x30(lr), if there are further calls inside, and making room for local variables is called function prolog. One example of this is shown in the slides below, where func calls func2, which has one local variable, var. Sometimes saving necessary registers is also considered a part of a function prolog.

Get hands-on with 1200+ tech skills courses.