嵌入单声道时如何设置运行时选项?

时间:2009-02-24 00:33:06

标签: mono

喜欢这些选项:

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

2 个答案:

答案 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);