Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Lab3_AI23BTECH11017

Contents of this zip

This compressed folder Lab3_AI23BTECH11017.zip contains the following files :

1. Lab3_AI23BTECH11017.c

This contains the C program to be used to accomplish this project.

2. Makefile

A makefile that compiles th eC code(s) and generates an executabe named riscv_asm.

Note : The instructions in the make file are supported on Ubuntu version 20.04

Setup

For usage of this project , follow the steps below:

  1. git clone using
git clone https://github.com/saikaushhikp/CS2323-Carch.git
  1. navigate to project folder
cd Lab3/Lab3_AI23BTECH11017
  1. add the input.s file containing the instructions to this folder.

  2. compile the code using the following commands:

cd make
./riscv_asm
  1. The output.hex will be created in the same folder as input.s and will contain the machine code in Hex-form for each instruction in input.s file.

  2. Detailed information about the project and the code’s limitations is well-discussed in REPORT.pdf within