Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.51 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.51 KB

C Compiler (Short version)

This repositoy contains implementation of assignments from Compiler Sessional course (CSE 310), offered in Department of CSE at BUET.

The last assignment is the completion of the previous ones, which will generate assembly code for a C file.

How to run on Linux

  • Install flex and bison using

sudo apt install flex bison

  • Install gcc using

sudo apt install gcc

  • Clone the repo using git clone or download the zip file.
  • Go to the directory of the assignment you want to run.
  • Put the file you want to run
  • Edit the file name in script.sh file
  • Run the following commad

./script.sh

  • input file must be in the same directory of the assignment