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).
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.