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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!