2.21.4 The following three problems in this Exercise refer to this function, written in MIPS assembly following the calling conventions from Figure 2.14: a. f: add $v0,$a1,$a0 bnez $a2,L sub $v0,$a0,$a1 L: jr $v0 b. f: add $a2,$a3,$a2 slt $a2,$a2,$a0 move $v0,$a1 beqz $a2, L jr $ra L: move $a0,$a1 jal g ; Tail call [10] <2.8> This code contains a mistake that violates the MIPS calling convention. What is this mistake and how should it be fixed? | |
| View Solution | |
| << Back | Next >> |