首页> 外文期刊>Science of Computer Programming >'Slimming' a Java virtual machine by way of cold code removal and optimistic partial program loading
【24h】

'Slimming' a Java virtual machine by way of cold code removal and optimistic partial program loading

机译:通过冷删除代码和优化部分程序加载来“瘦身” Java虚拟机

获取原文
获取原文并翻译 | 示例

摘要

Embedded systems provide limited storage capacity. This limitation conflicts with the demands of modern virtual machine platforms, which require large amounts of library code to be present on each client device. These conflicting requirements are often resolved by providing specialized embedded versions of the standard libraries, but even these stripped down libraries consume significant resources. We present a solution for "always connected" mobile devices based on a zero footprint client paradigm. In our approach, all code resides on a remote server. Only those parts of applications and libraries that are likely to be needed are transferred to the mobile client device. Since it is difficult to predict statically which library parts will be needed at run time, we combine static analysis, opportunistic off-target linking and lazy code loading to transfer code with a high likelihood of execution ahead of time while the other code, such as exception code, remains on the server and is transferred only on demand. This allows us to perform not only dead code elimination, but also aggressive elimination of unused code. The granularity of our approach is flexible from class files all the way down to individual basic blocks. Our method achieves total code size reductions of up to 95%.
机译:嵌入式系统提供有限的存储容量。此限制与现代虚拟机平台的要求相冲突,后者要求在每个客户端设备上都存在大量的库代码。这些冲突的要求通常可以通过提供标准库的专用嵌入式版本来解决,但即使是这些精简的库也会占用大量资源。我们提出了一种基于零占用空间客户端范例的“始终连接”的移动设备解决方案。在我们的方法中,所有代码都驻留在远程服务器上。仅将可能需要的应用程序和库的那些部分转移到移动客户端设备。由于很难以静态方式预测运行时将需要哪些库部分,因此我们结合了静态分析,机会主义的脱靶链接和惰性代码加载,以极有可能提前执行代码,而其他代码(例如异常代码,保留在服务器上,仅按需传输。这使我们不仅可以执行无效代码消除,而且可以主动消除未使用的代码。从类文件一直到单个基本块,我们方法的粒度非常灵活。我们的方法可将总代码大小减少多达95%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号