Add code generation option to compiler