Code generation from MR (machine representation)