[Mono-dev] enabling LLVM / jit with embedded mono
Jonathan Shore
jonathan.shore at gmail.com
Tue Apr 3 21:31:14 UTC 2012
I noticed an operation which completes in a fraction of a second when run from the command line with mono is taking many minutes when run as an embedded VM within a C-based app. It seems almost as if is running without any JIT.
I attempted to provide the --llvm flag when configuring mono within the embedded app, but does not accept. Did:
char* options = "--llvm";
mono_jit_parse_options (1, &options);
The above fails indicating that does not recognize --llvm. Looking at the code, -llvm does not appear to be in the argument list. Ignoring the above setting above, other functions called during initialization are:
_domain = mono_jit_init (bootassembly);
_core = mono_domain_assembly_open (_domain, bootassembly);
// setup config locations
mono_config_parse (NULL);
...
Is there something else I need to do in order to get JIT and/or LLVM optimisations running?
Thanks
Jonathan
More information about the Mono-devel-list
mailing list