Go to file
Rui Ueyama dcd4579226 Handle a function returning bool, char or short
x86-64 psABI says that only the least significant 8 bits are
significant if RAX has a return value of a function returning bool.
Likewise, it looks like only the least significant 1 or 2 bytes
are guaranteed to have a correct value for char and short return
values, respectively.
2020-12-07 12:00:06 +09:00
test Handle a function returning bool, char or short 2020-12-07 12:00:06 +09:00
.gitignore Rewrite tests in shell script in C 2020-10-15 14:22:15 +09:00
LICENSE Add LICENSE and README.md 2020-10-07 20:13:25 +09:00
Makefile Rewrite tests in shell script in C 2020-10-15 14:22:15 +09:00
README.md Add LICENSE and README.md 2020-10-07 20:13:25 +09:00
chibicc.h Add do ... while 2020-12-07 12:00:06 +09:00
codegen.c Handle a function returning bool, char or short 2020-12-07 12:00:06 +09:00
main.c Emit .file and .loc assembler directives 2020-10-15 14:22:16 +09:00
parse.c Handle a function returning bool, char or short 2020-12-07 12:00:06 +09:00
strings.c Refactoring: Add a utility function 2020-10-08 14:31:22 +09:00
tokenize.c Add do ... while 2020-12-07 12:00:06 +09:00
type.c Add ?: operator 2020-12-07 12:00:06 +09:00

README.md

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