Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 659 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 659 Bytes

Advent of Compilers

In which I write the compiler from "Writing a C Compiler" by Nora Sandler.

Running

From this directory:

./scripts/mycc example/main.c

Requires classfiles to be in the bin directory

Testing

From the writing-a-c-compiler-tests repo directory:

./test_compiler ../adventofcompilers/scripts/mycc --chapter 1

or

./test_compiler ../adventofcompilers/scripts/mycc --chapter 3 --stage lex

Notes to self

Update TackyCodeGen for --stage tacky updates.

Update TackyInstructionToInstructionsVisitor for --stage codegen updates.

Update TackyToAsmCodeGen for "Assembly Generation" updates.