Skip to content

ckswjd99-at-snu/Compiler-2021-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compiler 2021-2

A project in SNU ECE Introduction to Compiler (430.414) lecture, at 2021 autumn.

Implemented front-end of SubC compiler, which generates stack machine code.

Build

SubC Compiler

$ cd src/compiler
$ make all

Stack Machine

$ cd src/stack_machine
$ make all

Run

Compiler

$ ./subc input_file.c output_name.s

Stack Machine

$ ./sim input_file.s