HYBRID JAVA']JAVA COMPILATION OF JUST-IN-TIME AND AHEAD-OF TIME FOR EMBEDDED SYSTEMS

被引:0
|
作者
Oh, Hyeong-Seok [1 ]
Moon, Soo-Mook [1 ]
Jung, Dong-Heon [1 ]
机构
[1] Seoul Natl Univ, Sch Elect Engn & Comp Sci, Seoul 151742, South Korea
基金
新加坡国家研究基金会;
关键词
Hybrid [!text type='Java']Java[!/text] compilation; ahead-of-time compiler; just-in-time compiler; JVM; VIRTUAL MACHINE;
D O I
10.1142/S0218126612400014
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Many embedded Java software platforms execute two types of Java classes: those installed statically on the client device and those downloaded dynamically from service providers at runtime. For higher performance, it would be desirable to compile static Java classes by ahead-of-time compiler (AOTC) and to handle dynamically downloaded classes by just-in-time compiler (JITC), providing a hybrid compilation environment. This paper proposes a hybrid Java compilation approach and performs an initial case study with a hybrid environment, which is constructed simply by merging an existing AOTC and a JITC for the same Java virtual machine. Both compilers are developed independently for their own performance advantages with a generally accepted approach of compilation, but we merged them as effciently as possible. Contrary to our expectations, the hybrid environment does not deliver a performance, in-between of full-JITC's and full-AOTC's. In fact, its performance is even lower than full-JITC's for many benchmarks. We analyzed the result and found that a naive merge of JITC and AOTC may result in ineffciencies, especially due to calls between JITC methods and AOTC methods. Based on these observations, we propose some ideas to reduce such a call overhead. We also observed that the distribution of JITC methods and AOTC methods is also important, and experimented with various distributions to understand when a hybrid environment can deliver a desired performance. Finally, we discuss how JITC and AOTC should be designed for efficient hybrid execution.
引用
收藏
页数:22
相关论文
共 50 条
  • [41] Virtualizing Real-time Embedded Systems with Java']Java
    Vitek, Jan
    PROCEEDINGS OF THE 48TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2011, : 906 - 911
  • [42] Flow-sensitive runtime estimation: an enhanced hot spot detection heuristics for embedded Java']Java just-in-time compilers
    Lee, Seong-Won
    Moon, Soo-Mook
    Kim, Seong-Moo
    SOFTWARE-PRACTICE & EXPERIENCE, 2016, 46 (06): : 841 - 864
  • [43] Java']Java-through-C compilation: An enabling technology for Java']Java in embedded systems
    Varma, A
    Bhattacharyya, SS
    DESIGNERS' FORUM: DESIGN, AUTOMATION AND TEST IN EUROPE CONFERENCE AND EXHIBITION, 2004, : 161 - 166
  • [44] Just-in-time optimizations for high-performance Java programs
    Univ of Rochester, Rochester, United States
    Concurrency Pract Exper, 11 (1063-1073):
  • [45] Reusing the Optimized Code for Java']JavaScript Ahead-of-Time Compilation
    Park, Hyukwoo
    Kim, Sungkook
    Park, Jung-Geun
    Moon, Soo-Mook
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2019, 15 (04)
  • [46] Efficient exception handling in Java']Java bytecode-to-C ahead-of-time compiler for embedded systems
    Jung, Dong-Heon
    Park, JongKuk
    Bae, Sung-Hwan
    Lee, Jaemok
    Moon, Soo-Mook
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2008, 34 (04) : 170 - 183
  • [47] Experiences with multi-threading and dynamic class loading in a Java']Java just-in-time compiler
    Sundaresan, Vijay
    Maier, Daryl
    Ramarao, Pramod
    Stoodley, Mark
    CGO 2006: 4TH INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, 2006, : 87 - +
  • [48] PYE: A Framework for Precise-Yet-Efficient Just-In-Time Analyses for Java']Java Programs
    Thakur, Manas
    Nandivada, V. Krishna
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2019, 41 (03):
  • [49] Integrated prepass scheduling for a Java']Java just-in-time compiler on the IA-64 architecture
    Inagaki, T
    Komatsu, H
    Nakatani, T
    CGO 2003: INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, 2003, : 159 - 168
  • [50] Quantum simulation with just-in-time compilation
    Efthymiou, Stavros
    Lazzarin, Marco
    Pasquale, Andrea
    Carrazza, Stefano
    QUANTUM, 2022, 6