Question: 1. A compiler designer is trying to decide between two code sequences for a particular computer. The hardware designers have supplied the following facts: CPI
1. A compiler designer is trying to decide between two code sequences for a particular computer. The hardware designers have supplied the following facts: CPI for R-type instruction is 1, CPI for I-type instruction is 2, and CPI for J-type instruction is 3. The two sequences have the following instruction counts: Code sequence 1: R-type (2), i-type (1), J-type (2) Code sequence 2: R-type (4), I-type (1), J-type (1) How many instructions code sequence 2 executes ? Select one: O a. 6 O b.5 O c. 3 O d. 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
