subject

Consider the following MIPS code segment that is executed on a 5-stage pipeline architecture that does not implement forwarding or stalling in hardware. (1) add $4, $1, $1 (2) add $7, $4, $9 (3) lw $2, 40($8) (4) sub $8, $1, $2 (5) sw $8, 80($2) (6) sub $2, $8, $4 (7) lw $8, 2($1) (8) add $8, $4, $2 a. [6 marks] Identify the data dependences that cause hazards. You are to use the following format to inform each dependency reported: instruction (y) depends on instruction (z) caused by register $ b. [8 marks] If the hazards identified in (a.) are to be prevented by the compiler through no-op insertions but without reordering the instructions, indicate where would the compiler add no-ops. You are to use the following format to inform each dependency reported: insert x no-ops between instructions (y) and (z). c. [6 marks] Now assume a more intelligent compiler that can move instructions in the code. Can such a compiler reduce the number of added no-ops?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Lisa has a section of her document that she would like to include in the index. which option should lisa choose? mark index mark entry insert endnote add text
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
You know the right answer?
Consider the following MIPS code segment that is executed on a 5-stage pipeline architecture that do...
Questions
question
English, 30.12.2020 22:50
question
Mathematics, 30.12.2020 22:50
question
Mathematics, 30.12.2020 22:50
Questions on the website: 13722363