Mono AOT 参数
博客专区 > iBoxDB 的博客 > 博客详情
Mono AOT 参数
iBoxDB 发表于4年前
Mono AOT 参数
  • 发表于 4年前
  • 阅读 1163
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 新注册用户 域名抢购1元起>>>   

在多泛型及接口时使用Mono AOT需要使用如下编译 mscorlib.dll

mono --aot=full,nrgctx-trampolines=8096,nimt-trampolines=8096,ntrampolines=4048 mscorlib.dll


http://docs.xamarin.com/guides/ios/troubleshooting/


Ran out of trampolines of type 0

If you get this message while running device,  You can create more type 0 trampolines (type SPECIFIC) by modifying your project options "iPhone Build" section.  You want to add extra arguments for the Device build targets:

-aot "ntrampolines=2048"

The default number of trampolines is 1024.  Try increasing this number until you have enough for your application.


Ran out of trampolines of type 1

If you make heavy use of recursive generics, you may get this message on device.  You can create more type 1 trampolines (type RGCTX) by modifying your project options "iPhone Build" section.  You want to add extra arguments for the Device build targets:

-aot "nrgctx-trampolines=2048"

The default number of trampolines is 1024.  Try increasing this number until you have enough for your usage of generics.


Ran out of trampolines of type 2

If you make heavy use interfaces, you may get this message on device.  You can create more type 2 trampolines (type IMT Thunks) by modifying your project options "iPhone Build" section.  You want to add extra arguments for the Device build targets:

-aot "nimt-trampolines=512"

The default number of IMT Thunk trampolines is 128.  Try increasing this number until you have enough for your usage of interfaces.




编译流程

sudo apt-get install libmono2.0-cil mono-runtime
or
sudo apt-get install mono-complete

sudo mono --aot=full /usr/lib/mono/2.0/mscorlib.dll
sudo mono --aot=full /usr/lib/mono/2.0/...dll
mono --aot=full iBoxDB.net2.dll
mono --aot=full CA.exe
mono --full-aot CA.exe

共有 人打赏支持
iBoxDB
粉丝 47
博文 17
码字总数 7207
作品 3
×
iBoxDB
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: