Live data from Hacker News

Show HN: My C compiler compiled itself

github.com

1–10 of 130 posts

Re: Show HN: My C compiler compiled itself

#8
> Then run ./build.py. This will use the bootstrapped 30cc-compiler to compile 30cc itself. It then again uses the 30cc-compiled compiler to compile 30cc once again. The final compiler is then stored as ./30cc.

Why isn't that also done by the Makefile? The only catch I could see is that you'd need to have it build to different output names, but that seems fine for what it is?

---

Also, I'm curious - did you find yourself having to constrain your use of C in order to make sure that the compiler could compile itself? Or does it implement everything you would use naturally anyways?

(And of course, congrats/bravo; super impressive:])

Post reply on HN