Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6. Which one is the correct translation of the following statement: A=B+C where $1. $2, and $3 are associated with variables A, B and C,
6. Which one is the correct translation of the following statement: "A=B+C" where $1. $2, and $3 are associated with variables A, B and C, respectively? (a) add $3, $1, $2 (b) add S2, S1, $3 (c) add $1,92,93 (d) add $2,53,51 7. Which one correctly accesses an integer array data A[8]" where $2 points to the base address of array A? (All numbers in this problem are decimal.) (a) lw $10,32(52) (b) lw $10,28(82) (c) lw $10,8(S2) (d) lw $10,7(82) ** 8. Execution time is computed as CPI x Number of cycles x Cycle time. True or False? 9. A different compiler may produce a different mixture of the instructions. Therefore, CPI may be different for the same program and the same CPU. True or False? 10. A different instruction set architecture (ISA) may produce a different mixture of the instructions. Therefore, CPI may be different for the same program. True or False? 11. Suppose we have three implementations of the same instruction set architecture (ISA). For a certain program, CPU A has a clock cycle time of 10 ns and a CPI (cycles per instruction) of 2.0. CPU B has a clock cycle time of 15 ns and a CPI of 1.0. What machine is faster for this program - A or B? 12. The faster CPU may be different for a different program. True or False? 13. A program executes 100 instructions. Among them, 50 are branch and 50 are ALU instructions. A branch instruction takes 2 cycle while an ALU instruction takes 1 cycle. What is the average CPI
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started