Download and Install spim version 7.1 on Mac OS X
Tuesday the 8th of July, 2008

    spim  most recent diff


      View the most recent changes for the spim port at: spim.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for spim.
      The raw portfile for spim 7.1 is located here:
      http://spim.darwinports.com/dports/emulators/spim/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/spim
      Google
      Web Darwinports.com



      # $Id: Portfile 20294 2006-11-01 17:50:08Z blair macports.org $

      PortSystem 1.0
      Name: spim
      Version: 7.1
      Category: emulators devel lang x11
      Maintainers: stewartsmith mac.com
      Description: an assembly language MIPS R2000/R3000 simulator
      Long Description: SPIM S20 is a software simulator that runs assembly language programs for the MIPS R2000/R3000 RISC computers. SPIM can read and immediately run files containing assembly language statements. SPIM is a self-contained system for running these programs and contains a debugger and interface to the operating system. SPIM implements almost the entire MIPS assembler-extended instruction set for the R2000/R3000 (I've omitted some the complex floating point comparisons and details of the memory system page tables). The MIPS architecture has evolved considerably since then (in particular the 64 bit extensions), which means that SPIM will not run programs compiled for recent MIPS or SGI processors.
      Homepage: http://www.cs.wisc.edu/~larus/spim.html
      Platform: darwin

      master_sites http://www.cs.wisc.edu/~larus/SPIM/
      distname ${name}-${version}
      checksums md5 24546da54bca92d96bf2ea284e81d6eb

      depends_lib lib:libX11.6:XFree86

      worksrcdir ${name}-${version}

      patchfiles patch-Configure patch-Makefile patch-spim.c
      post-patch {
      reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/Makefile
      }

      configure.cmd ./Configure

      build.target spim xspim

      pre-destroot {
      xinstall -d ${destroot}${prefix}/share/spim
      }
      destroot.target install install.man

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/spim
      % sudo port install spim
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching spim
      ---> Verifying checksum for spim
      ---> Extracting spim
      ---> Configuring spim
      ---> Building spim with target all
      ---> Staging spim into destroot
      ---> Installing spim
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using spim with these commands:
      %  man spim
      % apropos spim
      % which spim
      % locate spim

     Where to find more information:

    Darwin Ports



    image test