Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 620 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 620 Bytes

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