Question: 1. The high-level code statement is as follows: M[4] = a + b + M[8] - 50; Array M has 10 integer elements (an array
![1. The high-level code statement is as follows: M[4] = a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f32a70d864f_14466f32a7067e07.jpg)
1. The high-level code statement is as follows: M[4] = a + b + M[8] - 50; Array M has 10 integer elements (an array of 10 elements can be expresses as, M[10], where M is the name of the array. The position of elements of the array can be expressed by M[O] to M[9]). The elements in array Mare, M[12] = {20, 10, 30, 15, 5, 20, 0, 10, 15, 25). The starting address of the array Mis 0x4000. The value of a = 30, b = 20. The program/saved registers and temporary registers are available as $50 -- $57 and $t0 - $t9 respectively. (a) How many tokens are in this statement? 3 (b) What are the address and element of M[2] (3rd element) and M[6] (7th element)? 3 (b) What is the updated data sequence in array M? 3 (c) Write down the sequence of MIPS instructions for the above high-level code statement? 6 2. You are currently using Intel 1-3 processor with 2GHz frequency. Now you want to execute a program within 75% of the previous execution/CPU time. What will be the frequency of the new processor you need to buy? Assume, processor speed affects 60% of your execution/CPU time. 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
