Examples/Handouts
Linux cheat-sheet - Linux sheet as given out in class.
SPIM - all about SPIM, right from the source (James Larus, the original author).
SPIM Quick Reference
sort -n vs. sort -g - answer to why the sorts we used in lab are different.
Computer progress (Figure 1.10.7) - chart showing the evolution of computers and computing power (pdf).
Figure 1.15 - Graph of clock rate and power for Intel x86 (pdf).
Figure 1.16 - Growth of processor performance (pdf).
example1.a - simplest little assembly program.
handout2.a - some basic math in assembly.
example3.a - arrays in SPIM (What? Already??).
example4.a - branches/jumps, version 1.
example5.a - branches/jumps, version 2.
example6.a - using branch as a loop.
example7.a - branching with inequality.
example8.a - using left and right shifts.
example9.a - arithmetic with floating point values.
example10.a - program with single procedure (function).
example11.cc - sample C++ program showing common use of two functions.
example11.a - SPIM version of above C++ program. Pay close attention to how
all the local frame information is stored.
chars.a - solution to Lab 5 problem 3.
spim3.cpp - C++ solution to project 3.
spim3.a - corresponding spim solution to project 3.
|