Can someone provide a short code example of compiler bootstrapping?
- by Jatin
This Turing award lecture by Ken Thompson on topic "Reflections on Trusting Trust" gives good insight about how C compiler was made in C itself.
Though I understand the crux, it still hasn't sunk in. So ultimately, once the compiler is written to do lexical analysis, parse trees, syntax analysis, byte code generation etc, a separate machine code is again written to do all that on compiler?
Can anyone please explain with a small example of the procedure? Bootstrapping on wiki gives good insights, but only a rough view on it.
PS: I am aware of the duplicates on the site, but found them to be an overview which I am already aware