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 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
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, 02.04.2021 20:00
question
Mathematics, 02.04.2021 20:00
question
Mathematics, 02.04.2021 20:00
question
Mathematics, 02.04.2021 20:00
Questions on the website: 13722362