Answered step by step
Verified Expert Solution
Question
1 Approved Answer
y = L[8*j] For the above C code, assume y in $s1 , j in $t1 , L is an array of words, and the
y = L[8*j]
For the above C code, assume y in $s1, j in $t1, L is an array of words, and the base address of L is in $s2. Which of the following is its corresponding MIPS code?
a) lw $s1, 32*j($s2)
b) add $t2, $t1, $s2 lw $s1, 8 ($t2)
c) sll $t2, $t1, 5 add $t2, $t2, $s2 lw $s1,0($t2)
d) sll $t2, $t1, 3 add $t2, $t2, $s2 lw $s1,0($t2)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started