A Larger Stackframe

Our first stackframe example had a stackframe with only one entry in it. Now we'll look at an example of a larger stackframe. We'll make one with four entries.

You can click on the diagram to change its orientation to suit your taste. One case matches the memory maps in the book: lower addresses at the bottom and higher addresses at the top. The other case matches the official CSCI250 memory map that has lower addresses at the top and higher addresses at the bottom.

The pictures here show a small area of memory just before and just after a call to a subroutine named subr. The code between the pictures is what effects the changes between these pictures; this code is BOFB for subr.