Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1- Suppose a program runs in on a computer with multiply operations responsible for 60% of the execution time. What is the overall speedup achieved

1- Suppose a program runs in on a computer with multiply operations responsible for 60% of the execution time.

  1. What is the overall speedup achieved if the speed of multiply operations is improved by 8?
  2. How much do we have to improve the speed of multiplication if i want my program to run two times faster.

--------------------

2-Convert the following C statements into equivalent MIPS assembly language:

a = 10;

b = 20;

while ((a > (b - 5))

{

D[6] = b - 10;

b = b - 5;

a = 1 - C[i];

}

Assume that the variables a, b, and i are assigned to registers $s0, $s1 and $s2 and the base address of arrays C and D are stored in registers $s6 and $s7 respectively.

----------------------------

Assume that the following code segment. Calculate the address stored in the assembled instruction for the label NEXT_2?

0x00400038 add $s0, $0, $0

0x0040003C NEXT_2: add $t0, $s1, $0

0x00400040 j EXIT_2

0x00400044 sub $t1, $t0, $s0

0x00400048 addi $s0, $s0, 5

0x0040004C lw $t1, 20($0)

0x00400050 EXIT_2: bne $t1, $0, NEXT_2

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago