CS 352: XSPIM Documentation


      We will be using the XSPIM simulator to test, debug and run MIPS programs for some of our class homeworks.

    • A tutorial by Prof. Keckler on how to use XPSIM on departmental Linux machines can be found here.
    • An example MIPS program to find the largest of numbers can be found here.
    • Tip: If you are stepping through the program, enter the number at the prompt only after the second syscall (syscall 5) has been executed. Otherwise, the simulator does not step as expected.

    • More information about XSPIM can be found in Appendix B of the textbook as well as on the companion CD. The xspim manual can be found here. Note that the manual is slightly outdated and Appendix B in the textbook offers a more exhaustive overview of XSPIM.
    • The official SPIM webpage is here.