This lecture covers memory segments, memory variables, memory instructions, the role of the stack, and machine language (M/L).
Outline
The Memory Map
Declaration of Variables in .data
The Load/Store Family
Spilling Data to the stack
Stack Frames for method invocation
Creating a machine language program
Instruction Formats
Techniques for handling large immediates
Big Ideas
Classes and objects are on the heap
Code is in .text
Everything else is in a stack frame on the stack
Implementing Recursion
Fixing the instruction size and varying the format is a good compromise between the simplicity of regularity and the inefficiency of variable-size instructions.