Question: The following C code finds the minimum of array: int min = List[0]; // array is declared as an integer array (4-byte elements) int i
The following C code finds the minimum of array:
int min = List[0]; // array is declared as an integer array (4-byte elements)
int i = length - 1;
while(i >= 0){
if (List[i] min = List[i]; } i = i - 1; } Assume List (base address of the array) and length are stored in $a0 and $a1, respectively. a) Draw full symbol table (allocate registers to min and i) b) Be the compiler and translate this code to MIPS assembly c) Be the assembler and translate the assembly you found in part b to MIPS binary language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
