Submit: lab1.mal, README
Files:
Before you begin: You will need to set up your environment.
Start -> Internet Tools -> _Unix - Telnet & SSH -> _learn, _teach,
etc. This will allow you to use cut & paste.
source /afs/cats.ucsc.edu/courses/cmpe12c-rph/newbin/make12cpath
Start -> X-Windows -> Xterm on hawking. Log in as you normally would.
xspimsal -file lab1.mal. This will start xspimsal with the file you just saved.
Problem: Posted is a very short C program, lab1.c.
If you were to compile a C program with the command gcc -S lab1.c,
you would get an output that is a .s file, or assembly language.
Posted is a cleaned up version of lab1.s called lab1.mal,
which will run on the MAL simulator, and which is
commented so you can see what is going on.
Your job is to take lab1.mal and make it more efficient by changing the
MAL instructions within the specified block of code. You may
delete, add, change, or move the instructions to make the code run more
efficiently (ie fewer total instructions executed). You DO NOT need to
change any branch instructions! Do not worry about suboptimal branching.
No collaboration with other students is allowed on this lab assignment!
Evaluation: your lab tutor will assign one of following grades: check +, check, check -, 0
Be sure that you're enrolled in the laboratory that you are attending; the lab tutors will have a list of those who are in their lab session.
Graders: Here is a grading template and a completed example.