TARGET-CODEGEN now takes output filename as argument and writes output to that file.