From 1f0ad125dde10eb586a57eb1bcee3177a76442d2 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Wed, 7 Jun 2017 18:24:17 +0200 Subject: [PATCH] [interp aot] documentation --- man/mono.1 | 10 ++++++++++ mono/mini/jit.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/man/mono.1 b/man/mono.1 index 28695ee9402..e822ff94c89 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -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 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 diff --git a/mono/mini/jit.h b/mono/mini/jit.h index 28b2482c8f2..302b28b69e2 100644 --- a/mono/mini/jit.h +++ b/mono/mini/jit.h @@ -55,6 +55,8 @@ typedef enum { 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; -- 2.25.1