[interp aot] documentation
authorBernhard Urban <bernhard.urban@xamarin.com>
Wed, 7 Jun 2017 16:24:17 +0000 (18:24 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Wed, 7 Jun 2017 21:27:44 +0000 (23:27 +0200)
man/mono.1
mono/mini/jit.h

index 28695ee9402eef26c7bbe1342ffc500584d37115..e822ff94c89b2aa98b745633ab4fcff87fbdb2ba 100644 (file)
@@ -181,6 +181,16 @@ Gives the path for the temporary LLVM bitcode file created during AOT.
 .I info
 Print the architecture the AOT in this copy of Mono targets and quit.
 .TP
 .I info
 Print the architecture the AOT in this copy of Mono targets and quit.
 .TP
+.I interp
+Generates all required wrappers, so that it is possible to run --interpreter without
+any code generation at runtime.  This option only makes sense with \fBmscorlib.dll\fR.
+Embedders can set
+
+.nf
+mono_jit_set_aot_mode (MONO_AOT_MODE_INTERP);
+.fi
+.ne
+.TP
 .I ld-flags
 Additional flags to pass to the C linker (if the current AOT mode calls for invoking it).
 .TP
 .I ld-flags
 Additional flags to pass to the C linker (if the current AOT mode calls for invoking it).
 .TP
index 28b2482c8f25e819b18300939c4978534a18b9c0..302b28b69e2d7393f036a55141ac6de893df55dc 100644 (file)
@@ -55,6 +55,8 @@ typedef enum {
        MONO_AOT_MODE_FULL,
        /* Same as full, but use only llvm compiled code */
        MONO_AOT_MODE_LLVMONLY,
        MONO_AOT_MODE_FULL,
        /* Same as full, but use only llvm compiled code */
        MONO_AOT_MODE_LLVMONLY,
+       /* Uses Interpreter, JIT is disabled and not allowed,
+        * equivalent to "--full-aot --interpreter" */
        MONO_AOT_MODE_INTERP
 } MonoAotMode;
 
        MONO_AOT_MODE_INTERP
 } MonoAotMode;