Spim version 7.4 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 7.4

      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.4 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


      The spim Portfile 54529 2009-07-29 08:08:43Z toby macports.org $

      PortSystem 1.0
      Name: spim
      Version: 7.4
      Revision: 2
      Category: emulators devel lang x11
      Maintainers: gmail.com:mdippery
      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://pages.cs.wisc.edu/~larus/spim.html
      Platform: darwin

      Master Sites: http://pages.cs.wisc.edu/~larus/SPIM
      Checksums: md5 4aae83509d47a5a98d37db5b469cbe9e sha1 7c0772389dc7db54854681bceae432ea0e4c1587 rmd160 e134bb9271a65e4324375d4aa5b4f81d4d6b9963

      depends_lib port:xorg-libXaw port:xorg-libXp

      depends_build port:rman port:flex port:bison path:bin/xmkmf:imake

      worksrcdir ${name}-${version}

      Patch Files: patch-spim_Makefile.diff patch-xspim_Imakefile.diff

      configure {
      system "cd ${worksrcpath}/spim && ./Configure"
      system "cd ${worksrcpath}/xspim && xmkmf && ./Configure"
      }
      post-configure {
      reinplace {s|$(DESTDIR)$(MAN_DIR)/$(DOC_DIR)/xspim.$(MANSUFFIX)|$(DESTDIR)$(MAN_DIR)/xspim.$(MANSUFFIX)|} ${worksrcpath}/xspim/Makefile
      }

      build {
      system "cd ${worksrcpath}/spim && make prefix=${prefix} spim"
      system "cd ${worksrcpath}/xspim && make prefix=${prefix} xspim"
      }

      test {
      system "cd ${worksrcpath}/spim && make test"
      }

      destroot {
      system "cd ${worksrcpath}/spim && make DESTDIR=${destroot} prefix=${prefix} install install-man"
      system "cd ${worksrcpath}/xspim && make DESTDIR=${destroot} prefix=${prefix} 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



    Lightbox this page.