subject

Compare the performance of 1-issue and 2-issue processors, taking into account program transformations that can be made to optimize for 2-issue execution for the code below. for (i = 0; i! = j; i+ = 2)
b[i] = a[i] - a[i + 1];
When writing MIPS code, assume that variables are kept in registers as follows and that all registers except those indicated as Free are used to keep various variables, so they cannot be used for anything else.
i j a b c Free
R2 R8 R9 R10 R11 R3, R4, R5
A. Translate this C code to MIPS instructions. Your translation should be direct, without rearranging instructions to achieve better performance.
B. If the loop exits after executing only two iterations, draw the pipeline diagram for your MIPS code executed on a 2-issue processor. Assume the processor has perfect branch prediction and can fetch any two instructions in the same cycle.
C. Re-arrange the code to achieve better performance on a 2-issue statically scheduled processor.
D. What is the speedup going from the 1-issue processor to a 2-issue processor? Assume that 1,000,000 iterations of the loop are executed. Also assume perfect branch predictions on both 1-issue and 2-issue processors.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 25.06.2019 06:20
Horseback riders, bicyclists, and skateboarders the rules of right-of-way when they use the road ?
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
Most lo/to hazards occur under the following circumstances, except: a) regular operation b) maintenance c) cleaning d) repair
Answers: 2
You know the right answer?
Compare the performance of 1-issue and 2-issue processors, taking into account program transformatio...
Questions
question
Mathematics, 13.12.2020 05:20
question
History, 13.12.2020 05:20
question
Mathematics, 13.12.2020 05:20
question
History, 13.12.2020 05:20
question
Social Studies, 13.12.2020 05:20
question
Mathematics, 13.12.2020 05:20
Questions on the website: 13722360