After reviewing all the materials posted in Week 12,
you should be able to understand these concepts/answer these questions.
- Read a disassembled C language program (.s) file to see the stack commands. See Week 9 files that you disassembled.
- Recognize the registers that are used for stack control.
- Understand how data is stored in a stack.
- Understand how the basic set of methods (push, pop, peek, isempty, size) access the stack.
- What is the %rbp? And what purpose does it serve?
- What is the %rsp? And what purpose does it serve?
- How do you access a value on the stack that is part of the main program while in a sub-routine?
- How do you access a value on the stack that is part of the sub-routine?
- What happens to the sub-routine portion of a stack once the sub-routine completes its execution?
- How does the stack keep track of the caller?