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 RISCV assembly language implementations of the following problems, and print the results to ensure that both the C implementation and your RISCV 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 RISCV 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
C:
Asm:
findmaxfc
Given an array of integers, find the maximum value in the array. In this implementation, when comparing two values you must call the maxs function. That is you must make a function call two find the maximum of two integers. You can include the maxs implementation in the findmaxfcss source file.
$ findmaxfc
C:
Asm:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
