It would be really cool if you could abstract out the code generator that way the compiler could be ported to other micros as well. I know I started working on a pascal compiler for the AVR family of micros, but quickly ran out of time to work on it. It would have been much easier if I had a pre-developed compiler I could have simply switched out the generator on

Maybe just generating Assembly files would be sufficient and let one of the native assemblers take it from there.