Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Skeleton code for this portion of the lab can be found in lab1a.skel. In part A you write a RISC-V assembly language program that prints

Skeleton code for this portion of the lab can be found in lab1a.skel. In part A you write a RISC-V assembly language program that prints the contents of an array that are greater than a given constant K. The output should display each integer that meets the above condition on a new line. Note: Though this exercise seems quite simple, it is the building block of a powerful paradigm in high-performance computing called map-reduce. You are basically implementing the map operation which involves iterating over a list and extracting values that satisfy a particular condition or are the result of applying a particular function (in this example the function is greater than k).What do you have to do? Given an array of 10 numbers loop through them all For each number check if it is greater than a constant of your choice. The constant can be changed by changing the value K in the skeleton file. Print out the results one element per line. Download the skeleton file called lab1a.skel and add your code to it. Rename your file to lab1a.S where kerbos ID is the ID you use to login to your UC Davis email or MyUCDavis account. Comment your code explaining what the equivalent C operation would be (i.e. bge t0, t1, outside loop #if(t0 < t1){ ... }) Comment your name and ID# at the top of the fileSkeleton Code.dataarrayOfNums:.word 0.word 1.word 255.word 65536.word 4294967295.word 22.word 314159.word 161803.word 42.word 131929K: .word 1337.text.globl mainmain:####Code here####done:####Exit using environmental calls####

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

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

What will you do or say to Anthony about this issue?

Answered: 1 week ago