首页> 外文期刊>ACM transactions on sensor networks >Improved Ahead-of-time Compilation of Stack-based JVM Bytecode on Resource-constrained Devices
【24h】

Improved Ahead-of-time Compilation of Stack-based JVM Bytecode on Resource-constrained Devices

机译:资源受限设备上基于堆栈的JVM字节码的改进的提前编译

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

摘要

Many virtual machines exist for sensor nodes with only a few kB RAM and tens- to a few hundred kB Flash memory. They pack an impressive set of features but suffer from a slowdown of one to two orders of magnitude compared to optimised native code, reducing throughput and increasing power consumption.Compiling bytecode to native code to improve performance has been studied extensively for larger devices, but the restricted resources on sensor nodes mean most modern techniques cannot be applied. Simply replacing bytecode instructions with predefined sequences of native instructions is known to improve performance but produces code several times larger than the optimised C equivalent, limiting the size of programmes that can fit onto a device.This article identifies the major sources of overhead resulting from this basic approach and presents optimisations to remove most of the remaining performance overhead, and over half the size overhead, reducing them to 67% and 77%, respectively. While this increases the size of the VM, the break-even point at which this fixed cost is compensated for by the smaller code it generates, is well within the range of memory available on a sensor device, allowing us to both improve performance and load more code on a device.
机译:对于传感器节点,存在许多虚拟机,这些虚拟机只有几kB RAM和几十到几百kB Flash存储器。它们具有令人印象深刻的功能集,但与优化的本机代码相比,速度降低了一到两个数量级,从而降低了吞吐量并增加了功耗。对于大型设备,将字节码编译为本机代码以提高性能已得到广泛研究,但是传感器节点上有限的资源意味着无法应用大多数现代技术。用预定义的本机指令序列替换字节码指令可以提高性能,但所生成的代码要比优化的C语言等效代码大几倍,从而限制了可装入设备的程序的大小。本文确定了由此导致的开销的主要来源基本方法,并提出了一些优化措施,以消除大部分剩余的性能开销和一半以上的大小开销,分别将它们降低到67%和77%。虽然这增加了VM的大小,但其固定成本可以通过其生成的较小代码来补偿的收支平衡点恰好在传感器设备上可用的内存范围内,从而使我们能够同时提高性能和负载设备上的更多代码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号