Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Arrays in MIPS could be stored in registers, that severely constraints what the array could do, no more than 32 elements, to the point that
Arrays in MIPS could be stored in registers, that severely constraints what the array could do, no more than 32 elements, to the point that using a struct might make more sense in that case.
The better option for an array is to declare it in the .data subsection and then its stored out in main memory. (Because MIPS is a simulator not a native language we are still constrained on array sizes compared to C, but that constraint is on the order of a billion elements).
Change the array to 5 elements (you need to change the .space parameter to something > 12)
You then need to load up those elements into the array
And then print off all of the elements in the array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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