How I wrote a self-hosting C compiler in 40 days
I wrote a self-hosting C compiler which I named 8cc in 40 days. This is a log when I was writing it from scratch by myself in 2012. The code and its history are available at GitHub .
My expertise ranges from HTML/JavaScript to hard-core systems programming. I worked on search UI before. I'm now working on the LLVM project full-time.
Visit sigbus.info → On Hacker News Dec 2015 – May 2022
Software Engineering 3Programming Languages 3Web & Frontend 1History & Retro Computing 1
I wrote a self-hosting C compiler which I named 8cc in 40 days. This is a log when I was writing it from scratch by myself in 2012. The code and its history are available at GitHub .
I wrote a self-hosting C compiler which I named 8cc in 40 days. This is a log when I was writing it from scratch by myself in 2012. The code and its history are available at GitHub .
Sometimes you have to write code to do some ad-hoc things in order to make programs run in a variety of environments, but as time goes by, it could result in a tragicomical situation where ad-hoc features are built on other ad-hoc features. It is easy to identify that kind of problem, but in many cases, nobody can fix…