COMPUTER ARCHITECTURE- Q3. Suppose that we have two implementations of the same instruction set architecture: Machine A

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

COMPUTER ARCHITECTURE- Q3. Suppose that we have two implementations of the same instruction set architecture: Machine A

Post by answerhappygod »

Computer Architecture Q3 Suppose That We Have Two Implementations Of The Same Instruction Set Architecture Machine A 1
Computer Architecture Q3 Suppose That We Have Two Implementations Of The Same Instruction Set Architecture Machine A 1 (311.49 KiB) Viewed 23 times
COMPUTER ARCHITECTURE- Q3. Suppose that we have two implementations of the same instruction set architecture: Machine A has a clock cycle time of 12 ns and a CPI of 2.25 for some program. Machine B has a clock cycle of 22 ns and a CPI of 1.75 for the same program. 1. Find the CPU time for each machine? . ● 2. Which machine is faster? by how much? Q4: A compiler designer is trying to decide between two code sequences for a particular machine. For a particular high-level language, the compiler writer is considering two sequences that require the following instruction counts: (2 points) Instruction counts (in millions) Code 1 CPI of the instruction class Instruction class Code 2 2 1 2 A B C 1. What is the CPI for code 1? 2. What is the CPI for code 2? 3. Which code is faster? Why? 2 3 A B C 4 CPI of the instruction class 1 2 3 1. Which code sequence will execute faster according to MIPS? Why? 1 1 Q5: Consider a machine with three instruction classes. Suppose that we measured the code for a given program in two different compilers and obtained the following data (Assume that the machine's clock rate is 150 MHz.): (2 points) Instruction class (2 points) Instruction counts (in millions) Compiler 1 Compiler 2 10 5 1 1 1 1 2. Which code sequence will execute faster according to execution time? Why?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply