Is AOT (ahead of time) compilation available (or planned) in mono for android?

≯℡__Kan透↙ 提交于 2019-12-11 08:17:03

问题


I was wondering if there is any AOT compilation options for the mono for android platform (or anything planned?). I am asking this because I will port a game using mono for android, and performance is really important, this is why I wanted to know if AOT compilation is available (or any other compilation option that can produce better performances) I know that Monotouch uses AOT compilation, and that it can optionally use llvm as compiler in order to make some optimisations. So, I am wondering if the same options are available in mono for android.

Thanks in advance


回答1:


AOT is not available in Mono for Android, I don't think it is on the road-map either.

As far as I understand JIT is not slower than AOT, rather the contrary, because JIT can use the information it knows about the environment it runs on to optimize code to it. An AOT compiler cannot know everything about the same environment.

This thread: Why is Java faster when using a JIT vs. compiling to machine code? has some answers that elaborates on this.

So I really doubt that you would get any performance improvements if there were an AOT compiler.



来源:https://stackoverflow.com/questions/11163502/is-aot-ahead-of-time-compilation-available-or-planned-in-mono-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!