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 18:30
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 25.06.2019 08:20
In the context of computer operations division is a(n)
Answers: 2
question
Computers and Technology, 25.06.2019 12:30
In a paragraph of no less than 125 words, explain what netiquette is and how it improves efficiency and productivity in the workplace.
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, 01.11.2020 19:00
question
Mathematics, 01.11.2020 19:00
question
Mathematics, 01.11.2020 19:00
question
Mathematics, 01.11.2020 19:00
question
Mathematics, 01.11.2020 19:00
question
Social Studies, 01.11.2020 19:00
question
Chemistry, 01.11.2020 19:00
question
Mathematics, 01.11.2020 19:00