Using RISC-V assembly and given an array of elements of type short int in C, make a
Fantastic news! We've Found the answer you've been seeking!
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 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).
Related Book For
Digital Design and Computer Architecture
ISBN: 978-0123944245
2nd edition
Authors: David Harris, Sarah Harris
Posted Date: