Question: Using RISC-V assembly and given an array of elements of type short int in C, make a program that sums all the elements and returns
Using RISC-V assembly and given an array of elements of type short int in C, make a program that sums all the elements and returns the result. The prototype of the function is int SumVector(short int *v, int N); where N is the number of elements of the array passed as a parameter. (you just have to implement your function code without anything extra).
Step by Step Solution
3.48 Rating (158 Votes )
There are 3 Steps involved in it
Sum vectorshort ... View full answer
Get step-by-step solutions from verified subject matter experts
