rui314/9cc
View on GitHub ↗ ★ 1,955 C
A Small C Compiler
3 mentions on Hacker News by 3 people: 1 story, 2 comments · first 2018-12-14 · latest 2019-09-05
20082026
-
https://github.com/rui314/9cc and https://github.com/rui314/chibicc are his next two compilers.
comment by muizelaar · 2019-09-05 · in I wrote a self-hosting C compiler in 40 days (2015) -
https://github.com/rui314/9cc/blob/882e4b2dd8/main.c#L7 int main(int argc, char **argv) { ... Vector *tokens = tokenize(path, true); Program *prog = parse(tokens); sema(prog); gen_ir(prog); if (dump_ir1) dump_ir(prog->funcs);…
comment by akkartik · 2018-12-14 · in 9cc: A Small C Compiler