Skip to content

Reon-02/RISCV_VSD_SquadronMini

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

RISCV_VSD_SquadronMini

Lab exercises of RISCV workshop by Kunal Ghosh

Instructor : Kunal Ghosh

PRE-REQUISITE: Installing the required applications for the workshop - Virtual Box, Ubuntu on VBBOX and VDI files

TASK-1:

A: Write a simple C code and compile it with gcc comipler.

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.

NECESSARY INSTALLATIONS

Step 1: Setting up the virtual environment to work on

  • Install Oracle Virtual Box, VMBox
  • Launch Virtual Machine on VMBox
  • Attach the VDI file to the Virtual Machine instance in VMBox

Step 2: Install Leafpad - the word editor

$    sudo apt install leafpad <br/>

TASK 1A - COMPILE AND EXECUTE A SIMPLE C CODE USING GCC COMPILER

$   cd <br/>                           Navigate to home directory:<br>
$   leafpad filename.c & <br/>         This opens a blank file with filename.c, type the c code

image 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>

image Change the value of n in filename.c
Recompile and see the results
image

About

Lab exercises of RISCV workshop by Kunal Ghosh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published