static char **_orc_compiler_flag_list;
int _orc_compiler_flag_backup;
+int _orc_compiler_flag_emulate;
int _orc_compiler_flag_debug;
void
}
_orc_compiler_flag_backup = orc_compiler_flag_check ("backup");
+ _orc_compiler_flag_emulate = orc_compiler_flag_check ("emulate");
_orc_compiler_flag_debug = orc_compiler_flag_check ("debug");
}
goto error;
}
+ if (_orc_compiler_flag_emulate) {
+ program->code_exec = (void *)orc_executor_emulate;
+ compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE;
+ goto error;
+ }
+
if (target == NULL) {
ORC_COMPILER_ERROR(compiler, "No target given");
compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE;
extern const char *_orc_cpu_name;
extern int _orc_compiler_flag_backup;
+extern int _orc_compiler_flag_emulate;
extern int _orc_compiler_flag_debug;
void orc_code_chunk_free (OrcCodeChunk *chunk);