Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide detailed explanation Problem 3: (9 pts, 3pts each sub-part) One fallacy students and researchers often make is expecting to improve the overall performance

image text in transcribed

Please provide detailed explanation

Problem 3: (9 pts, 3pts each sub-part) One fallacy students and researchers often make is expecting to improve the overall performance of a computer just by improving only one aspect of the computer. Consider a computer running a program that requires 250 s, with 70 s spent executing FP instructions, 85 s executed L/S instructions, and 40 s spent executing branch instructions. By how much is the total time reduced if the time for the FP operations is reduced by 20%? By how much is the time for INT operations reduced if the total time is reduced by 20%? Can the total time be reduced by 20% by reducing only the time for the branch instructions? b. c. Solution Problem 4: (5 pts) Translate the below C code into RISC-V architecture, assuming that the values of i and j are placed in registers x28 and x29 respectively. The base address of array B is in register x30, and the base address of array C is in register x31 Solution Problem 5: (6 pts) Let register x5 hold the hex number 00a47c40hex and 00447040 hex is stored in register x6. a) (2 pts) What are the contents of register x31 after the following instruction is executed? addi x31, x5.,8 b) (2 pts) What would be the contents of register x30 after the following instruction is executed? add x30, x5, x6 c) (2 pts) What would be the contents of register x29 after the following instruction is executed? or x29, x5, x6

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

Students also viewed these Databases questions

Question

Explain how discrimination is a by-product of our thinking.

Answered: 1 week ago