[prev] 6 [next]

Rendering C in MIPS: Conditional Statements

C provides conditional control structures such as
  • if and switch
MIPS provides testing/branching instructions
  • seq, slti, sltu, ..., beq, bgtz, bgezal, ..., j, jr, jal, ...
We need to render C's structures in terms of testing/branching