arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1712.05590cs.PL
收藏

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

Improved Ahead-of-Time Compilation of Stack-Based JVM Bytecode on Resource-Constrained Devices

Niels Reijers, Chi-Sheng Shih

摘要:

对于传感器节点,存在许多虚拟机,其仅具有几KB RAM和几十到几百KB闪存。它们包含了一组令人印象深刻的功能,但与优化的本机代码相比,速度会减慢一到两个数量级,从而降低了吞吐量并增加了功耗。将字节码编译为本地代码以提高大型设备的性能已经得到了广泛的研究,但传感器节点上的有限资源意味着大多数现代技术无法应用。简单地将字节码指令替换为预定义的本地指令序列可以提高性能,但产生的代码比优化的C等效代码大几倍,限制了可以安装到设备上的程序的大小。本文确定了这种基本方法产生的开销的主要来源,并提出了优化,以消除大部分剩余的性能开销,并超过一半的大小开销,将它们分别减少到69%和91%。虽然这增加了VM的大小,但补偿此固定成本的盈亏平衡点完全在传感器设备上可用的内存范围内,从而使我们能够提高性能并在设备上加载更多代码。

英文摘要:

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 paper 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 69% and 91% respectively. While this increases the size of the VM, the break-even point at which this fixed cost is compensated for 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑