• DocumentCode
    703992
  • Title

    Bytecode-to-C ahead-of-time compilation for Android Dalvik Virtual Machine

  • Author

    Hyeong-Seok Oh ; Ji Hwan Yeo ; Soo-Mook Moon

  • Author_Institution
    Dept. of Electr. & Comput. Eng., Seoul Nat. Univ., Seoul, South Korea
  • fYear
    2015
  • fDate
    9-13 March 2015
  • Firstpage
    1048
  • Lastpage
    1053
  • Abstract
    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.
  • Keywords
    Java; operating systems (computers); program compilers; software performance evaluation; virtual machines; AOTC generated code; Android zygote mechanism; C code; DVM; DVM source code; Dalvik VM; JITC; JVM method; Java; Java specific optimizations; ahead-of-time compilation; android Dalvik virtual machine; bytecode translation; bytecode-to-C ahead-of-time compilation; exception handling; garbage collection; high performance code; just-in-time compiler; Androids; Automation; Cryptography; Decision support systems; Europe; Humanoid robots; Registers;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Design, Automation & Test in Europe Conference & Exhibition (DATE), 2015
  • Conference_Location
    Grenoble
  • Print_ISBN
    978-3-9815-3704-8
  • Type

    conf

  • Filename
    7092544