2.1.1 The following problems explore translating from C to MIPS. Assume that the variables
f, g, h, and i are given and could be considered 32-bit integers as declared in a
C program.
a. f = g – h;
b. f = g + (h - 5);
[5] <2.2> For the C statements above, what is the corresponding MIPS
assembly code? Use a minimal number of MIPS assembly instructions.
 
 
View Solution
 
 
 
<< Back Next >>