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

被引:5
作者
Reijers, Niels [1 ]
Shih, Chi-Sheng [1 ]
机构
[1] NTU, Dept Comp Sci & Informat Engn, IoX Res Ctr, 1,Sect 4,Roosevelt Rd, Taipei 10617, Taiwan
关键词
Wireless sensor networks; resource-constrained; JVM; bytecode; virtual machines; compilers; ahead-of-time compilation; EXECUTION;
D O I
10.1145/3341170
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:44
相关论文
共 45 条
[1]  
Alpern Bowen, 1999, P ACM SIGPLAN INT C
[2]  
[Anonymous], 2015, HEAP SORT ROSETTA CO
[3]  
[Anonymous], 802154 IEEE
[4]  
Aslam Faisal, 2008, P ACM C EMB NETW SEN
[5]  
Aslam Faisal, 2011, THESIS
[6]  
Balani Rahul, 2006, P ACM SIGBED INT C E
[7]  
Brouwers Niels, 2009, P ACM C EMB NETW SEN
[8]   Efficient Off-Board Deployment and Customization of Virtual Machine-Based Embedded Systems [J].
Courbot, Alexandre ;
Grimaud, Gilles ;
Vandewalle, Jean-Jacques .
ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2010, 9 (03)
[9]  
Ellul Joshua, 2012, THESIS
[10]  
Ellul Joshua, 2010, P INT C SENS TECHN A