Question: Requirements You will develop RISC - V assembly language implementations of the following problems, and print the results to ensure that both the C implementation

Requirements
You will develop RISC-V assembly language implementations of the following problems, and print the results to ensure that both the C implementation and your RISC-V implementation compute the correct answer.
Your executables must be named as follows, and must be compiled with a Makefile
We will test your projects using autograder
Note that in all your programs below you must follow the RISC-V function calling conventions that we cover in class.
Remeber to remove the line # YOUR CODE HERE from the starter code.
findmax
Given an array of integers, find the maximum value in the array. You can implement this version as a single function like in the given C code.
$ ./findmax 12349956789
C: 99
Asm: 99
findmaxfc
Given an array of integers, find the maximum value in the array. In this implementation, when comparing two values you must call the max2_s function. That is you must make a function call two find the maximum of two integers. You can include the max2_s implementation in the findmaxfc_s.s source file.
$ ./findmaxfc 12349956789
C: 99
Asm: 99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!