Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 Consider a program with the execution flow shown in Figure 1. There are in total 3 types of instructions used in this program:

image text in transcribed

Question 2 Consider a program with the execution flow shown in Figure 1. There are in total 3 types of instructions used in this program: Type 1 (in-processor calculation): execution rate as 1 per clock cycle; Type 2 (memory access): each instruction takes 2 clock cycles for execu- tion; Type 3 (loop control): each instruction takes 2 clock cycles for jump into the loop block or 3 clock cycles for jump to the block after loop. In statistics, for this program, the actual rounds of loop follows the probability distribution below: Number of loopsProbability 10% 2% 30% 20% 10% 10% 2 4 Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz. In average, how long is the time (in s) needed for executing the whole program by this computer? [12 Question 2 Consider a program with the execution flow shown in Figure 1. There are in total 3 types of instructions used in this program: Type 1 (in-processor calculation): execution rate as 1 per clock cycle; Type 2 (memory access): each instruction takes 2 clock cycles for execu- tion; Type 3 (loop control): each instruction takes 2 clock cycles for jump into the loop block or 3 clock cycles for jump to the block after loop. In statistics, for this program, the actual rounds of loop follows the probability distribution below: Number of loopsProbability 10% 2% 30% 20% 10% 10% 2 4 Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz. In average, how long is the time (in s) needed for executing the whole program by this computer? [12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

Identify HRM systems, practices, and policies.

Answered: 1 week ago