[Mono-list] AOT Compiling a .NET assembly

Christopher David Howie me at chrishowie.com
Wed Jun 2 23:49:44 EDT 2010

On 06/02/2010 10:10 PM, MrUnleaded wrote:
> I know that mono has somethings to do AOT compilation and I was curious
> as to how/where in the PE/CLI structure any native code is put and if
> there is some documentation on that anywhere.

AOT code is put into a file whose name is the same as the assembly, with
.so added to the end.  This file is understood only by Mono; the .NET
runtime will not use it.

> I would imagine it would have some relation to the ManagedNativeHeader
> that is referenced in ECMA335 on page 179 but I haven't been able to
> find anything on it other then that DataDirectory/RVA is always 0.

This is for native code compiled into the assembly, which I think is
used primarily by Managed C++.

Chris Howie

If you correspond with me on a regular basis, please read this document:

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5


This document should be read only by those persons to whom it is
addressed.  If you have received this message it was obviously addressed
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses you are
agreeing that I am, by definition, "the intended recipient," and that I
may do whatever I wish with the contents of any message you send me,
unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may
be included on your message.

More information about the Mono-list mailing list