subject

We use a processor with CPIs for the following classes of instructions to execute the following Ccode. 1) Count how many instructions are to be executed for each of the class, and 2) calculate the total number of cycles for each class and overall total cycles for all classes, and 3) calculate the percentage of total cycles by each class with respect to the overall total cycles. Addition used for calculating memory effective address for load and store instructions should NOT be considered. But loop count increment is considered as addition Instruction class CPI add 1 mul 20 load/store 12 branch 2 int N = 1000,000; int A[N], B[N], i; for (i=0; i < N; i++) { A[i] += 3.14 * B[j] # instructions x106 Total Cycles x106 | Cycles Percentage Instruction class | CPI add mul load/store 2 branch 1 20 Overall Total cycles =
If you want to reduce the number of instructions used by this code, which instruction would you try to reduce, show the code for how would you do it, and how many instructions can be reduced per iteration?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
We use a processor with CPIs for the following classes of instructions to execute the following Ccod...
Questions
question
Mathematics, 05.06.2020 04:01
Questions on the website: 13722363