Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (25 Points) Consider the code segment for (i-0: -100; it+) Assume X is an array of 64-bit integer, d is a 64-bit integer, and

image text in transcribed

5. (25 Points) Consider the code segment for (i-0: -100; it+) Assume X is an array of 64-bit integer, d is a 64-bit integer, and i is a 32-bit integer. Assume XO] is at address O(RO) in memory, X[1] at RO+8, X[2] at RO+ 16, etc. Assume d and i are at addresses d and j in memory. 1. (15 Points) Write the code in RISC-V; include comments on each line. 2. (5 Points) What is the size of the RISC-V code in bytes? 3. (5 Points) What is the RISC-V code CPl? Assume Load and store instructions take 4 cycles each, branches take 3 cycles, and arithmetic/logical instruction each takes one cycle. 5. (25 Points) Consider the code segment for (i-0: -100; it+) Assume X is an array of 64-bit integer, d is a 64-bit integer, and i is a 32-bit integer. Assume XO] is at address O(RO) in memory, X[1] at RO+8, X[2] at RO+ 16, etc. Assume d and i are at addresses d and j in memory. 1. (15 Points) Write the code in RISC-V; include comments on each line. 2. (5 Points) What is the size of the RISC-V code in bytes? 3. (5 Points) What is the RISC-V code CPl? Assume Load and store instructions take 4 cycles each, branches take 3 cycles, and arithmetic/logical instruction each takes one cycle

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Have issues been prioritized?

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago

Question

Compare the current team to the ideal team.

Answered: 1 week ago