News for hackers. Stuff that matters.
Re:Self hosted C – breakdown by kazinator on Friday December 04, 2015 @01:08PM (#10677937)
> It gives me a funny sense of pride that my compiler can now be used to improve itself.

Only with difficulty, because your compiler is written in a language that is poorly suited for writing compilers.

How about using nice high level language whose implementation is partially written in C to write a C compiler in that nice high level language which then compiles that partially-written-in-C component of the implementation of that high level language.

Re:Self hosted C – breakdown by andrewchambers on Friday December 04, 2015 @04:05PM (#10679119)
You would be surprised how the logic for a c compiler is pretty densely compressed, even in C code. You don't actually gain too much by switching to haskell or ocaml (I have done experiments).