Installing Spim/Xspim

Spim is A MIPS32 Simulator freely available for Linux, Mac and Windows. The process for installing the software from source is not as nice as we would expect it to be.
Download source code from:
http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz

You will probably need to get Bison and Flex:

sudo apt-get install bison flex

Don’t forget:

sudo apt-get install libxaw7-dev

Otherwise you’ll get “X11/Xaw/Cardinals.h: No such file or directory”

Build and install xspim first:

cd xspim; make && sudo make install

Then spim:

cd ../spim; make && sudo make install

If you install spim before xspim, the latter will fail with “install: accessing `/usr/lib/spim/exceptions.s’: Not a directory”

3 Responses Subscribe to comments


  1. Michael

    Thank you, from Uppsala, Sweden. :-) I was missing libxaw7-dev.

    May 17, 2009 @ 5:14 am


  2. admin

    Good to know. I find using Spim under Linux and Mac OS painful. The X11 interface is buggy and hard to interact with. Furthermore, I encountered some bugs that were directly related to Spim rather than my own program. For educational purposes, Mars is way better.

    (From Montreal, but was in Gävle this summer ;) )

    May 18, 2009 @ 10:46 pm


  3. Nguyen Van Duc

    Thank you so much.

    I try to install it many time.but I can’t

    from VietNam .Ho Chi Minh University of Technology

    using XSPIM to learn Computer Architecture

    Oct 05, 2009 @ 4:43 am

Reply


Twitter Updates
    Archives
    Categories