標題: A static region-based compiler for the Dalvik virtual machine
作者: You, Yi-Ping
Chen, Jian-Ru
資訊工程學系
Department of Computer Science
關鍵字: Android;Dalvik virtual machine;region-based compilation
公開日期: Aug-2016
摘要: The Dalvik virtual machine (VM) is an integral component used to execute applications in Android, which is one of the leading operating systems for mobile devices. The Dalvik VM is an interpreter and is equipped with a trace-based just-in-time compiler for enhancing the execution performance of frequently executed paths, or traces. However, traces generated by the Dalvik VM can be stopped in a conditional branch or a method call/return, which means that these traces usually have a short lifetime, decreasing the effectiveness of the compiler optimizations applied to them. Furthermore, the just-in-time compiler applies only a few simple optimizations because of performance considerations. In this article we present a traces-to-region (T2R) framework that extends traces to regions and statically compiles these regions into native binaries so as to improve the execution of Android applications. The T2R framework involves three main stages: (i) the profiling stage, in which the run-time trace information of an application is extracted; (ii) the compilation stage, in which regions are constructed from the extracted traces and are statically compiled into a native binary; and (iii) the execution stage, in which the compiled binary is loaded into the code cache when the application starts to execute. Experiments performed on an Android tablet demonstrated that the T2R framework was effective in improving the execution performance of applications by 10.5-16.2% and decreasing the size of the code cache by 4.6-28.5%. Copyright (c) 2015 John Wiley & Sons, Ltd.
URI: http://dx.doi.org/10.1002/spe.2344
http://hdl.handle.net/11536/134012
ISSN: 0038-0644
DOI: 10.1002/spe.2344
期刊: SOFTWARE-PRACTICE & EXPERIENCE
Volume: 46
Issue: 8
起始頁: 1109
結束頁: 1130
Appears in Collections:Articles