Bytecode-to-C Ahead-of-Time Compilation for Android Dalvik Virtual Machine

被引:0
|
作者
Oh, Hyeong-Seok [1 ]
Yeo, Ji Hwan [1 ]
Moon, Soo-Mook [1 ]
机构
[1] Seoul Natl Univ, Dept Elect & Comp Engn, Seoul, South Korea
来源
2015 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE) | 2015年
关键词
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Android employs Java for programming its apps which is executed by its own virtual machine called the Dalvik VM (DVM). One problem of the DVM is its performance. Its just-in-time compiler (JITC) cannot generate high-performance code due to its trace-based compilation with short traces and modest optimizations, compared to JVM's method-based compilation with ample optimziations. This paper proposes a bytecode-to-C ahead-of-time compilation (AOTC) for the DVM to accelerate pre-installed apps. We translated the bytecode of some of the hot methods used by these apps to C code, which is then compiled together with the DVM source code. AOTC-generated code works with the existing Android zygote mechanism, with corrects garbage collection and exception handling. Due to off-line, method-based compilation using existing compiler with full optimizations and Java-specific optimizations, AOTC can generate quality code while obviating runtime compilation overhead. For benchmarks, AOTC can improve the performance by 10% to 500%. When we compare this result with the recently-introduced ART, which also performs ahead-of-time compilation, our AOTC performs better.
引用
收藏
页码:1048 / 1053
页数:6
相关论文
共 24 条
  • [21] Deploying Machine Learning Models to Ahead-of-Time Runtime on Edge Using MicroTVM
    Liu, Chen
    Jobst, Matthias
    Jobst, Matthias
    Guo, Liyuan
    Shi, Xinyue
    Partzsch, Johannes
    Mayr, Christian
    PROCEEDINGS 2023 IEEE/ACM INTERNATIONAL WORKSHOP ON COMPILERS, DEPLOYMENT, AND TOOLING FOR EDGE AI, CODAI 2023, 2023, : 37 - 40
  • [22] CBCT Forecasting - A Convolution-LSTM Based Machine Learning Framework for Predicting "ahead-Of-Time" Patient Anatomy, Dose to Be Delivered, and Dose Trend in Head and Neck Radiotherapy
    Santhanam, A.
    Stiehl, B.
    Lauria, M.
    Savjani, R.
    Gros, S.
    Low, D.
    MEDICAL PHYSICS, 2022, 49 (06) : E206 - E207
  • [23] Discrete-time Markov decision process for performance analysis of virtual machine allocation schemes in C-RAN
    Younes, Sana
    Idi, Maroua
    Robbana, Riadh
    JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2024, 225
  • [24] A Low-Level Virtual Machine Just-In-Time Prototype for Running an Energy-Saving Hardware-Aware Mapping Algorithm on C/C plus plus Applications That Use Pthreads
    Stirb, Iulia
    Gillich, Gilbert-Rainer
    ENERGIES, 2023, 16 (19)