2009-02-24 70 views
2

喜欢这些选项:嵌入单声道时如何设置运行时间选项?

 
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 

回答

6

--config - > mono_config_parse()

--trace - > mono_jit_set_trace_options()

--runtime - > mono_jit_init_version()

- -verbose和--optimize - > mono_set_defaults()和mono_parse_default_optimizations()

--profiler - > mono_profiler_lo广告()

0

你能做到在单4.x的

mono --optimize=float32 program.exe 

const char* jit_options[] = {"--optimize=float32"}; 
mono_jit_parse_options(1, (char**)jit_options); 
+0

与答案添加一些解释如何回答帮助OP在固定电流问题 – 2016-11-04 07:08:07