Runnable MIPS Code
Hello World
Prints the message "Hello World".
Compiling a C assignment using registers
(page 110 of PH).
Compiling a C assignment when the operands are in memory
(for the same problem as previous example).
Compiling Using a Variable Array Index
(3 examples from pages 111-114 of PH).
Compiling an If Statement into a Conditional Branch
(page 123 of PH).
Compiling If-then-else into Conditional Branches
(page 124 of PH).
Compiling a Loop with Variable Array Index
(page 126 of PH).
Compiling a while Loop
(page 127 of PH).
Compiling a switch Statement by Using a Jump Address Table
(page 129 of PH).
Compiling a Procedure that Doesn't Call Another Procedure
(page 134 of PH).
Compiling a Recursive Procedure, Showing Nested Procedure Linking
(page 136 of PH).
Call by Reference
.
Compiling a String Copy Procedure
(page 143 of PH).
Passing Extra Parameters on the Stack
.
This code has been tested using XSPIM version 1.6 under UNIX
Revision Date: 2/1/98