Go to file
Rui Ueyama ce4d744609 Emit .file and .loc assembler directives
With these directives, gdb can print out an error location when
a compiled program crashes.
2020-09-13 21:36:54 +09:00
test Rewrite tests in shell script in C 2020-09-13 21:36:53 +09:00
.gitignore Rewrite tests in shell script in C 2020-09-13 21:36:53 +09:00
LICENSE Add LICENSE and README.md 2020-09-13 21:36:37 +09:00
Makefile Rewrite tests in shell script in C 2020-09-13 21:36:53 +09:00
README.md Add LICENSE and README.md 2020-09-13 21:36:37 +09:00
chibicc.h Precompute line number for each token 2020-09-13 21:36:54 +09:00
codegen.c Emit .file and .loc assembler directives 2020-09-13 21:36:54 +09:00
main.c Emit .file and .loc assembler directives 2020-09-13 21:36:54 +09:00
parse.c Handle block scope 2020-09-13 21:36:37 +09:00
tokenize.c Precompute line number for each token 2020-09-13 21:36:54 +09:00
type.c [GNU] Add statement expression 2020-09-13 21:36:37 +09:00

README.md

This is the reference implementation of https://www.sigbus.info/compilerbook.