[Mono-list] Embedding mono

Paolo Molaro lupus@ximian.com
Thu, 24 Jun 2004 00:12:31 +0200

On 06/23/04 Joe Ante wrote:
> How do I control the optimizations that the jit will do to the code I loaded
> using mono_domain_assembly_open?

We aren't exporting those functions in a public header file.
You should trust the jit to enable the optimizations that are most
effective in short compile times.
If you really need to change them, the functions are the following:

void        mono_set_defaults                 (int verbose_level, guint32 opts);
int         mono_parse_default_optimizations  (const char* p);

The functions are not likely to change, but they are not fully supported
in mono 1.0.
The value for p is the same documented for mono -O=....


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better