Q:

getting spim (mips compiler ) on ubuntu 12.04

I want to install spim (mips compiler) to my ubuntu 12.04 machine .Is there anyone to help me ?  

A:

you can install spim ( spim - MIPS R2000/R3000 emulator  ) it with 
sudo apt-get install spim

from your terminal. 
in 12.04 you can have a Graphical MIPS32 Assembly language emulator with spim installation.https://apps.ubuntu.com/cat/applications/precise/spim/
@OP

QTspim 32-bit
http://sourceforge.net/projects/spimsimulator/files/qtspim_9.1.6_linux32.deb/download
QTspim 64-bit
http://sourceforge.net/projects/spimsimulator/files/qtspim_9.1.6_linux64.deb/download

for more information : http://lambda-pancakes.blogspot.in/2012/10/qtspim-in-ubuntu-1204.html

