It would have been far easier to write an MIPS Emulator in a tiny VM and run that VM instead of MIPS
It would also be even slower ^^