Run MIPS program in command line without opening QTSPIM

I want to execute a program purely through terminal without having to open QTSPIM and running the program through the GUI. Is there a way around this? I have been using SPIM for this purpose but it's outdated and has some really annoying bugs that have been fixed in QTSPIM. The man page for QTSPIM shows an -execute option but I'm not using a MIPS processor so this doesn't work for me.

asked Aug 18, 2020 at 21:38 233 3 3 silver badges 19 19 bronze badges How about qemu instead? Commented Aug 18, 2020 at 22:27

Apparently qtspim -file foo.asm should work on any processor (using asm source, not an executable), but yes strangely -executed is documented to only work on a MIPS host CPU. manpages.ubuntu.com/manpages/bionic/man1/spim.1.html

Commented Aug 19, 2020 at 0:09

-file option just opens the qtspim with the file in question, rather than actually executing the file like the -f option does with spim