CDA-4101 Lecture 21 Notes
Method Invocation Revisited
What Steps Do I need to transform the following?
Stack
Method Area
High-level Steps
- calculate address for saving the old PC and LV,
then store it and save those registers
- Figure out where the LV pointer need to go and move it
- Raise the SP pointer
- Move the PC
What are lower-level steps?