Hacker GitHub

← All repos

rui314/8cc

View on GitHub ↗ ★ 6,429 C

A Small C Compiler

13 mentions on Hacker News by 12 people: 1 story, 12 comments · first 2014-11-05 · latest 2024-01-13

Mentions per year 13 mentions · busiest year 2015 (5)
20082026
  1. …https://craftinginterpreters.com/contents.html [3]: https://www3.nd.edu/~dthain/compilerbook/ [4]: https://github.com/rui314/8cc [5]: https://github.com/rui314/chibicc [6]: https://www.sigbus.info/how-i-wrote-a-self-hosting-c-compile...…
  2. …for writing a compiler. [0][1] No, optimisation, on the other hand, is not a simple problem. [0] https://github.com/rui314/8cc [1] https://github.com/rui314/chibicc
    comment by shakna · 2022-02-19 · in C meeting is over. C23 added:
  3. …Here are some candidates: * https://github.com/rswier/c4 * https://github.com/Fedjmike/mini-c * https://github.com/rui314/8cc * https://github.com/rui314/chibicc * https://github.com/aligrudi/neatcc Some of them are actually interpreters,…
  4. Another small C compiler by the same author: https://github.com/rui314/8cc
    comment by saagarjha · 2020-10-04 · in Chibicc: A Small C Compiler
  5. …made: https://www.sigbus.info/how-i-wrote-a-self-hosting-c-compile... Github sources and history: https://github.com/rui314/8cc The "gen.c" source file might be helpful for some of your questions about x86-64:…
    comment by tyingq · 2020-02-17 · in Let’s Build a Compiler (1995)
  6. Hadn't seen Mini-C before, that's quite the feat. Apart from the awesome C4, I also like 8cc ( https://github.com/rui314/8cc ) in this category. Recently did this myself ( https://github.com/mras0/scc/blob/master/scc.c ) but it took…
  7. Guys, i just started reading through source code of 8cc and now this new project :). https://github.com/rui314/8cc
  8. …this commit[0] it looks like -a was removed, but usage docs and error messages weren't updated. [0] https://github.com/rui314/8cc/commit/614f6e7b643333b9baaf8fb... Edit: adding link to relevant commit.
    comment by hundchenkatze · 2015-12-14 · in How I wrote a self-hosting C compiler in 40 days
  9. …a self-hosting compiler. I have read the Ken's paper, but when I was writing my C compiler in C ( https://github.com/rui314/8cc/blob/master/lex.c#L306 ), I was not aware that this was what Ken wrote in the paper. It was funny to notice…
  10. From the README: The code is heavily inspired by https://github.com/rui314/8cc as well as http://bellard.org/tcc/ . I recommend studying the source code of 8cc before contributing here, as 8cc is currently far more mature.
    comment by jevinskie · 2015-06-01 · in PicoC: A very small C interpreter
  11. …struggled to work with other compilers, I think TCC is too terse, and GCC/Clang have too much code. https://github.com/rui314/8cc Got things right, and I am trying continue with it's style. I will be happy if a student can take my compiler…
    comment by andrewchambers · 2015-03-17 · in Show HN: WIP C compiler in Go, inspired by 8cc
  12. …take more than half a day at least. [1] http://www.cs.berkeley.edu/~necula/cil/cil016.html [2] https://github.com/rui314/8cc
    comment by rui314 · 2014-11-05 · in C4 – C in 4 functions