Inspired by Eric Sink’s interview on the stackoverflow podcast I would like to build a full compiler in my spare time for the learning experience. My initial thought was to build a C compiler but I’m not sure whether it would take too much time.
I am wondering if there is a smaller general purpose language that would be more appropriate to implement as a first compiler effort? Or is a C implementation doable on a reasonable timescale (200 hrs)?
It is my intention to target the CLR.
My suggestion is to pick your favorite language. The knowledge you have going into it will outweigh the difficulty of writing a compiler for it, typically.