Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler

碩士 === 國立交通大學 === 資訊科學與工程研究所 === 95 === Recently there has been a growing interest in using Java on embedded portable devices such as cellular phones and PDAs. With the popularization of deploying Java applications on these devices increases, performance will become an important issue. To achieve hi...

Full description

Bibliographic Details
Main Authors: Shin-Lei Tang, 唐心磊
Other Authors: 單智君
Format: Others
Language:en_US
Published: 2007
Online Access:http://ndltd.ncl.edu.tw/handle/12689966812836173933
id ndltd-TW-095NCTU5394082
record_format oai_dc
spelling ndltd-TW-095NCTU53940822015-10-13T16:13:47Z http://ndltd.ncl.edu.tw/handle/12689966812836173933 Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler 嵌入式即時編譯器中方法展開之設計與實作 Shin-Lei Tang 唐心磊 碩士 國立交通大學 資訊科學與工程研究所 95 Recently there has been a growing interest in using Java on embedded portable devices such as cellular phones and PDAs. With the popularization of deploying Java applications on these devices increases, performance will become an important issue. To achieve higher performance, embedded JVMs are usually enhanced with a lightweight just-in-time (JIT) compiler, embedded JIT compiler, instead of incorporating a full-fledged JIT compiler as high performance JVM. For fast compilation and low code size expansion, an embedded JIT compiler usually compiles simple bytecode instructions and lets interpreter handle method calls, but it results in poor performance on method calls. In this thesis, we design and implement a method inlining mechanism that is suitable for embedded JIT compiler to improve speed performance while keeping the code size expansion in a reasonable size. In addition to inlining conventional static methods, our method inlining mechanism can also inline virtual methods and make use of monomorphic property to further improve performance. Even when this monomorphic property is violated by dynamic class loading, the inlined code can still have chances to be executed by our recovery mechanism. As a whole, our method inlining mechanism demonstrates 1.43 speedup with only about 3% code size expansion (if 512Kbytes memory). 單智君 2007 學位論文 ; thesis 69 en_US
collection NDLTD
language en_US
format Others
sources NDLTD
description 碩士 === 國立交通大學 === 資訊科學與工程研究所 === 95 === Recently there has been a growing interest in using Java on embedded portable devices such as cellular phones and PDAs. With the popularization of deploying Java applications on these devices increases, performance will become an important issue. To achieve higher performance, embedded JVMs are usually enhanced with a lightweight just-in-time (JIT) compiler, embedded JIT compiler, instead of incorporating a full-fledged JIT compiler as high performance JVM. For fast compilation and low code size expansion, an embedded JIT compiler usually compiles simple bytecode instructions and lets interpreter handle method calls, but it results in poor performance on method calls. In this thesis, we design and implement a method inlining mechanism that is suitable for embedded JIT compiler to improve speed performance while keeping the code size expansion in a reasonable size. In addition to inlining conventional static methods, our method inlining mechanism can also inline virtual methods and make use of monomorphic property to further improve performance. Even when this monomorphic property is violated by dynamic class loading, the inlined code can still have chances to be executed by our recovery mechanism. As a whole, our method inlining mechanism demonstrates 1.43 speedup with only about 3% code size expansion (if 512Kbytes memory).
author2 單智君
author_facet 單智君
Shin-Lei Tang
唐心磊
author Shin-Lei Tang
唐心磊
spellingShingle Shin-Lei Tang
唐心磊
Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
author_sort Shin-Lei Tang
title Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
title_short Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
title_full Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
title_fullStr Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
title_full_unstemmed Design and Implementation of Method Inlining in Embedded Just-In-Time Compiler
title_sort design and implementation of method inlining in embedded just-in-time compiler
publishDate 2007
url http://ndltd.ncl.edu.tw/handle/12689966812836173933
work_keys_str_mv AT shinleitang designandimplementationofmethodinlininginembeddedjustintimecompiler
AT tángxīnlěi designandimplementationofmethodinlininginembeddedjustintimecompiler
AT shinleitang qiànrùshìjíshíbiānyìqìzhōngfāngfǎzhǎnkāizhīshèjìyǔshízuò
AT tángxīnlěi qiànrùshìjíshíbiānyìqìzhōngfāngfǎzhǎnkāizhīshèjìyǔshízuò
_version_ 1717770097301389312