Need some help with this.
The code is attached below
1. Translate the following C code to RISC-V assembly code, using the minimum number ofinstructions you can think of. The values of: w, y, i, j are in registers: x4, x5, x6, x7. Register x10holds the base address of array A.
2. How many RISC-V instructions are needed to implement the above code? If w and y areinitialized to 5 and 10, and elements of A are initially 0, what is the total number of RISC-V instructionsexecuted to complete the loop?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here