Jump to content

Installing QtSpim & MIPS code

79wjd

I had to convert two C++ programs into MIPS, but I'm not sure if it's correct. We're told that we can use QtSpim in order to test it, but I'm not sure how to install QtSpim.

 

QtSpim: http://spimsimulator.sourceforge.net/

 

The code in the meantime:

spyW4Kn.png

 

 

 

LvZwsCi.png

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

@djdwosk97 You just have to download the installer and run it. http://sourceforge.net/projects/spimsimulator/files/

I've used MARS to debug MIPS assembly, it's pretty good: http://courses.missouristate.edu/kenvollmar/mars/

How do I run the installer on Linux? I have to choose a program and I'm not sure which program to launch it with.

/In Linux

And I'm using QtSpim since that's what the class recommends.

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Mars is a java program, so you just have to download and run.

To install the QtSpim in linux you will need to download the qtspim_9.1.12_linux64.deb file, open the terminal and run "sudo dpkg -i qtspim_9.1.12_linux64.deb"

I got a command not found error.

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Are you using any Debian based linux distro? .deb are only to Ubuntu, Debian and derivatives. If using Fedora, Mint or something like that, check their package managers, or download the source code and use it's makefile to compile and install.

I'm using XFCE

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

XFCE is just the GUI of the linux distro, it can be Suse, Debian, Ubuntu, Fedora... If you don't have any ideia, download the source code, navigate with the terminal to that folder and use the ./make all && ./make install, or you can just download Mars and save your time :P

Arch Linux (3.16.1-1-ARCH)

 

So I downloaded the source code as a .zip file, but how would I unzip it? I assume I need a program since 'unzip' in terminal doesn't work, but I'm not sure what program would be compatible.... 

 

/I really don't know shit about Linux :unsure: 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

If you don't know anything about Linux, why did you choose Arch to start? Are you masochist? xD

Try ElementaryOS, that is much more user friendly, or Ubuntu.

 

You can unzip it with "unzip something.zip". If you don't have it installed, try "pacman -Ss unzip" to search the unzip utility, and after that type "pacman -S something-unzip", where something-unzip is the zip package that appeared with the -Ss option.

I didn't really choose Arch. It's what my CS class was using/distributing in a Virtual Box setup to interface with school computers.

Anyway, it says I need root access to unzip the file, but when I switch to root access, I can't navigate anywhere

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Root to unzip? Never saw that, in what folder are you working? Try "sudo unzip something.zip".

downloads

When try anything other than "pacman -Ss unzip...." I get a 'command not found' error.

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Did you install the unzip? It should work.

 

 

PS: I recommend to just get an easier linux for you. If you want something light, try puppy Linux. :P

If by that you mean 'pacman -Ss unzip' then yes. 

 

And switching to another Linux version isn't an ideal option since I'm not really sure how I would set it up to connect to the school computers. 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

 

Ok, ok :P

 

Just checked and QtSpim is on the ArchLinux package repository, try the following:

 pacman -Syupacman -S qtspim 

I ended up getting it to work when I went to the lab today and sat next to someone who used their own computer (which is surprisingly very uncommon -- most use the school computers...for some stupid reason). 

 

But anyway: (I obviously wasn't expecting to download this way seeing as no one here would know about my school's SVN) 

sudo pacman -S qt 4 //Qt 4 libraries sudo svn export https://subversion.ews.illinois.edu/svn/sp15-cs233/_shared/linux_64/QtSpim /usr/local/bin/QtSpim --username YOUR_NETID //to download it off of SVN 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Wow, it was easier just to use pacman -Ss qtspim. I didn't suggested that because I was using ArchBSD on my test laptop, and they didn't have that package xD

 

Lab computers at my uni are terrible and unreliable, almost everyone use their own laptops =/

The lab computers are pretty good here plus have some nice 24" IPS Dell monitors; but still, it's much better being able to sit in the comfort of your own dorm and code rather than being forced to go out. 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×