• DocumentCode
    2073068
  • Title

    A method-based ahead-of-time compiler for Android applications

  • Author

    Wang, Chih-Sheng ; Perez, Guillermo A. ; Chung, Yeh-Ching ; Hsu, Wei-Chung ; Shih, Wei-Kuan ; Hsu, Hong-Rong

  • Author_Institution
    Nat. Tsing Hua Univ., Hsinchu, Taiwan
  • fYear
    2011
  • fDate
    9-14 Oct. 2011
  • Firstpage
    15
  • Lastpage
    24
  • Abstract
    The execution environment of Android system is based on a virtual machine called Dalvik virtual machine (DVM) in which the execution of an application program is in interpret-mode. To reduce the interpretation overhead of DVM, Google has included a trace-based just-in-time compiler (JITC) in the latest version of Android. Due to limited resources and the requirement for reasonable response time, the JITC is unable to apply deep optimizations to generate high quality code. In this paper, we propose a method-based ahead-of-time compiler (AOTC), called Icing, to speed up the execution of Android applications without the modification of any components of Android framework. The main idea of Icing is to convert the hot methods of an application program from DEX code to C code and uses the GCC compiler to translate the C code to the corresponding native code. With the Java Native Interface (JNI) library, the translated native code can be called by DVM. Both AOTC and JITC have their strength and weakness. In order to combine the strength and avoid the weakness of AOTC and JITC, in Icing, we have proposed a cost model to determine whether a method should be handled by AOTC or JITC during profiling. To evaluate the performance of Icing, four benchmarks used by Google JITC are used as test cases. The performance results show that, with Icing, the execution time of an application is two to three times faster than that without JITC, and 25% to 110% faster than that with JITC.
  • Keywords
    Java; mobile computing; program compilers; virtual machines; AOTC; Android applications; C code; DEX code; Dalvik virtual machine; GCC compiler; Google JITC; Icing; Java native interface library; cost model; method-based ahead-of-time compiler; trace-based just-in-time compiler; Androids; Google; Humanoid robots; Java; Libraries; Optimization; Registers; Ahead-of-time compiler; Android; Dalvik bytecode; just-in-time compiler; reverse engineering; static profiling;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Compilers, Architectures and Synthesis for Embedded Systems (CASES), 2011 Proceedings of the 14th International Conference on
  • Conference_Location
    Taipei
  • Print_ISBN
    978-1-4503-0713-0
  • Type

    conf

  • Filename
    6062027