Week 05
Data Structures and MIPS
Static vs Automatic Allocation
Dynamic Allocation
1-d Arrays in MIPS
Ex1: Function to find the length of a string
Ex2: Function to sum values in array
Ex3: Recursive function to sum values in array
2-d Arrays in MIPS
Structs in MIPS
Passing structs to Functions
Ex4: Reading in
struct
s
Ex5: Passing
struct
s by reference
Ex6: Passing
struct
s by reference
Compiling C to MIPS
Symbol (Name) Management
Local Variables
Expression Evaluation
Mapping Control Structures
Argc and Argv
Ex7: Echo in SPIM
Produced: 24 Sep 2019