Question: Can someone help me write this as an assembly code for RISCV?? Thank you. this is my code for the first part. Implement a program
Can someone help me write this as an assembly code for RISCV?? Thank you.

this is my code for the first part.

Implement a program to accumulate integer numbers from 1 to 100 using both C and RISC-V assembly, and simulate the assembly program execution using RARS. a. Write a main program in C from https://repl.it/languages/c to accumulate integers from 1 to 100 together using a for loop. The program should print the result (using C printf) and also retune the value of the accumulation (return). Execute the program from the browser and make sure it produces the expected output (5050 I believe). b. Using the loop.s as starting point, program 1-100 integer accumulation using RISC-V assembly. While the instructions we learned during the class should be sufficient to do the work, you can check RARS supported instructions (https://github.com/TheThirdOne/rars/wiki/Supported-Instructions) and use them. To print the result and return the result, your program should make environment call Printlnt, check https://github.com/TheThirdOne/rars/wiki/Environment-Calls. NOTE: RARS only simulates 32-bit instructions of RISC-V, so make sure you use the instructions that operate word-size data type (mostly with 'W' as the last character of the instruction mnemonic). #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
