[prev] 1 [next]

MIPS Programming

Writing directly in MIPS assembler is difficult (impossible?)

Strategy for producing likely correct MIPS code

  • develop the solution in C
  • map to "simplified" C
  • translate each simplified C statement to MIPS instructions
Simplified C
  • does not have while, switch, complex expressions
  • does have simple if, goto, one-operator expressions
  • does not have function calls and auto local variables
  • does have jump-and-remember-where-you-came-from