PRE-REQUISITE: Installing the required applications for the workshop - Virtual Box, Ubuntu on VBBOX and VDI files
B: Compile the same code with RISCV comipler to generate the assembly code for the same. Further Evaluate RISCV assembly code for the sample C code with two different options of comiplation.
- Install Oracle Virtual Box, VMBox
- Launch Virtual Machine on VMBox
- Attach the VDI file to the Virtual Machine instance in VMBox
$ sudo apt install leafpad <br/>
$ cd <br/> Navigate to home directory:<br>
$ leafpad filename.c & <br/> This opens a blank file with filename.c, type the c code
Save the file
Come back to terminal
Press entre to come to the home prompt
To see the results Run the following commands
$ gcc filename.c <br>
$ ./a.out <br>
Change the value of n in filename.c
Recompile and see the results