1

I made assembly code from c code using gcc mips compiler but it does not work in SPIM simulator. How can I success to run SPIM? Or is there any other method to obtain assembly code fit to SPIM?

chris
  • 11
  • 1
  • Do you have [a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve)? – Max von Hippel Jun 04 '18 at 01:08
  • 2
    SPIM does not implement every feature of the GNU assembler. So your choices are 1) Modifying the generated assembly by reading the documentation for SPIM and GAS, in order to be able to determine what you simply can remove, and what you need to rewrite (and how). Or 2) Just write the code yourself from scratch, using only features available in SPIM. – Michael Jun 04 '18 at 05:52

0 Answers0