[Mono-dev] Re: [Mono-devel-list] AOT + Embedding = ?

Zoltan Varga vargaz at gmail.com
Tue Sep 27 12:34:39 EDT 2005


                                        Hey,

> MONO_LOG_LEVEL=debug reports "AOT loaded AOT Module"
> for each of my assemblies. I double checked by hiding
> the AOT output so it wasn't found and got almost
> identical profile results, so it doesn't look like AOT
> compilation is saving any work.
>

The log should also contain lines likes this when the runtime finds an
AOTed method:

(./hello.exe:28386): Mono-DEBUG: AOT FOUND AOT compiled code for
Hello:Main () 0xb7565410 - 0xb7565433 0xb756546b

Loading an AOT method happens in mono_jit_compile_method_with_opt, and that
involves some work, so oprofile might be correct. Also, some internal methods
generated by the runtime cannot be (or currently not) AOT compiled, so the JIT
will still compile some methods even when everything is AOTed.

> Also, assuming that AOT loading can be made to work
> and is worthwhile is there any way to load AOT modules
> from memory? Eventually I'll need to keep them in a
> remote server and ship them to the local server when
> needed.
>

AOT modules are fairly normal UNIX shared libraries and the runtime loads the
using dlopen(). So you can copy them to a directory on a system and add that
directory to LD_LIBRARY_PATH so the runtime will find it.

               Zoltan

> Otherwise, the job of moving Second Life to mono is
> going very well. More details here:
>
> http://secondlife.blogs.com/babbage/2005/08/second_life_in_.html
> http://secondlife.blogs.com/babbage/2005/08/flying_a_mono_b.html
>
> :-)
>
> Cheers,
>
> Jim.
>
>
>
>
>
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
>



More information about the Mono-devel-list mailing list