General Links Windows Software Linux Software
SPIM


http://www.cs.wisc.edu/~larus/spim.html


Spim is a self-contained simulator that will run MIPS R2000/R3000 assembly language programs. It reads and immediately executes assembly language code for this processor. spim provides a simple debugger and minimal set of operating system services. spim does not execute binary (compiled) programs.

Spim implements almost the entire MIPS assembler-extended instruction set for the R2000/R3000 (It omits some complex floating point comparisons and rounding modes and details of the memory system page tables.) The MIPS architecture has evolved considerably since then (in particular, from 32 to 64 bits), which means that Spim will not run programs compiled for recent MIPS or SGI processors. MIPS compilers also generate a number of assembler directives that Spim cannot process. These directives can be safely deleted.

  • To RUN Spim, simply type spim or xspim at the unix prompt.

  • To load an assembly file, the file must be located in your home folder. Click on LOAD and input the filename (i.e. fibonacci.s). Then click on RUN.