 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
• |
Compile
programs and see what the register
|
|
allocation and
the final phases of the
|
|
|
compiler have
done/added
|
|
|
|
– |
Be sure you
understand and can work through
|
|
|
the code – why
is it like this? Write down your
|
|
|
questions…
|
|
|
• |
To create
executables to be run by SPIM
|
|
|
from your own
compiler.
|
|
|
|
– |
Add
$Tiger/Spim/bin to your path
|
|
|
|
– |
Un-comment line
28 in Main/Main.java and
|
|
|
comment line 29
to produce Spim code alone
|
|
|
|
– |
use 'xspim
-file <filename>.s' to run, and then
|
|
|
press run on the
console
|
|