[Mono-dev] Status of non-full AOT on x86 mac

Brian Luczkiewicz brian at sooloos.com
Sat Oct 30 21:59:32 EDT 2010


I took another look at this today and ended up committing a patch to my
github fork that enables --aot on x86 macs.

http://github.com/blucz/mono/commit/fb96f5d6387cc5c019fc00bfc89a25204fa14166

It appears to work quite well--I was able to AOT compile a large (~0.5mloc)
codebase on osx and cut startup time by 7x for my app.

It would be great if you could review this and consider incorporating it
into the mono mainline.


Brian



On Fri, Oct 29, 2010 at 12:24 AM, Zoltan Varga <vargaz at gmail.com> wrote:

> Hi
>
> On Wed, Oct 27, 2010 at 7:41 PM, Brian Luczkiewicz <brian at sooloos.com>wrote:
>
>> I have a cross-platform (osx+mono/ms.net) app that runs a large piece of
>> generated code at startup--on windows, 95% of the runtime of this code is in
>> the JIT compiler and ngen improves startup time for this app dramatically. I
>> was hoping to try out --aot and potentially see a corresponding improvement
>> in startup time on osx.
>>
>> Sadly, AOT is locked behind if !defined(__apple__) on x86, even on mono
>> 2.8.
>>
>> So:
>>
>> 1. Are there plans to enable aot on x86 osx?
>>
>>
> No plans, the x86 support was only implemented to support google native
> client which requires aot even on x86.
>
>
>>  2. If not, what work is required to get this done? I'm not opposed to
>> getting my hands dirty.
>>
>>
> Probably not much work is needed, but it requires knowledge about mono
> internals and osx assembler/linker tools, so it won't be easy.
>
>          Zoltan
>
>
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20101030/861592b0/attachment.html 


More information about the Mono-devel-list mailing list