喜欢这些选项:
Usage is: mono [options] program [program-options] Development: --aot Compiles the assembly to native code --debug[=] Enable debugging support, use --help-debug for details --profile[=profiler] Runs in profiling mode with the specified profiler module --trace[=EXPR] Enable tracing, use --help-trace for details --help-devel Shows more options available to developers Runtime: --config FILE Loads FILE as the Mono config --verbose, -v Increases the verbosity level --help, -h Show usage information --version, -V Show version information --runtime=VERSION Use the VERSION runtime, instead of autodetecting --optimize=OPT Turns on or off a specific optimization Use --list-opt to get a list of optimizations --security[=mode] Turns on the unsupported security manager (off by default) mode is one of cas, core-clr, verifiable or validil
答案 0 :(得分:6)
- config - > mono_config_parse()
- 追踪 - > mono_jit_set_trace_options()
- 运行时 - > mono_jit_init_version()
- 详细和--optimize - > mono_set_defaults()和mono_parse_default_optimizations()
- profiler - > mono_profiler_load()
答案 1 :(得分:0)
你可以用单声道4.x
来做mono --optimize=float32 program.exe
或
const char* jit_options[] = {"--optimize=float32"};
mono_jit_parse_options(1, (char**)jit_options);