Print code gen and some rough backpatching