帳號:guest(3.137.216.109)          離開系統
字體大小: 字級放大   字級縮小   預設字形  

詳目顯示

以作者查詢圖書館館藏以作者查詢臺灣博碩士論文系統以作者查詢全國書目
作者(中文):薛宇鈞
作者(外文):Hsueh, Yu-Chun
論文名稱(中文):Optimization and Validation of Dalvik Interpreter and Just-in-Time Compiler
論文名稱(外文):Dalvik直譯器與即時編譯器之優化與驗證方法
指導教授(中文):李政崑
指導教授(外文):Lee, Jenq-Kuen
口試委員(中文):蘇泓萌
陳呈瑋
學位類別:碩士
校院名稱:國立清華大學
系所名稱:資訊工程學系
學號:100062569
出版年(民國):102
畢業學年度:101
語文別:英文
論文頁數:30
中文關鍵詞:Dalvik虛擬機器直譯器即時編譯器
外文關鍵詞:Dalvik Virtual MachineInterpreterJust-in-time Compiler
相關次數:
  • 推薦推薦:0
  • 點閱點閱:623
  • 評分評分:*****
  • 下載下載:0
  • 收藏收藏:0
Dalvik虛擬機器為Android執行應用程式的主體,被執行的程式為DEX格式檔案,既由Java程式碼編譯而來。而分析並執行DEX中的字及位元碼(bytecode)指令係Dalvik虛擬機器中的直譯器(Interpreter)的主要工作。於Android開源碼專案(Android Open Source Project)中,Android2.2版,釋出了由C撰寫成的可移植直譯器,此外更提供ARM架構的組合語言撰寫成的快速直譯器,意即在ARM架構的環境上使用快速直譯器能較可移植直譯器帶來更好的效能。除此之外,2.2版加入了即時編譯器(Just-in-time compiler),能夠提前將字節位元碼編譯為目標機器碼,在執行上較直譯快速,進而提升系統效能。
在這篇論文中,我們的首要目的即移植快速直譯器以及即時編譯器於晶心此本土平台上,並支援自我驗證模式來驗證即時編譯結果於執行階段。當中我們將逐步介紹直譯器是如何執行、即時編譯器的編譯流程,以及如何與直譯器互動,最終描述自我驗證模式的驗證流程。
最後透過實驗呈現將Android的快速編譯器及即時編譯器移植於晶心平台的效能改善。
Dalvik virtual machine is the main process to execute programs for Android. A executable program is compiled into DEX format from JAVA code. In addition, the analysis and execution of bytecode instruction in DEX file are dominated by the interpreter in Dalvik virtual machine. A portable interpreter written in C is provided in AOSP(Android Open Source Project). Moreover, a fast interpreter written in assembly code is also supported for ARM architecture, i.e. the performance of fast interpreter is much better than the one of portable interpreter. There is also a just-in-time compiler which translates and optimizes the bytecode to intended CPU machine code for ARM architecture, and that bring better performance than the execution of interpreter.

In this dissertation, we introduce the fast interpreter and just-in-time compiler support for Andes platform, an indigenous platform in Taiwan. Moreover, a self-verification mode is supported for validating JIT. First, we introduce the knowledge about how the interpreter works, the compilation flow of just-in-time compiler, and the interaction between interpreter and just-in-time compiler. Then, we describe the self-verification flow. Finally, we devise the fast interpreter and just-in-time compiler on Andes AG102 development board and perform experiments to obtain the performance information.
Contents
Abstract i
Contents ii
List of Figures iv
1 Introduction 1
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Overview of the Thesis . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Background 5
2.1 Dalvik Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Target Indigenous Platform : Andes . . . . . . . . . . . . . . . . . . . 6
3 Fast Interpreter Supports for Andes Platform 9
3.1 The Operational Structure of Fast Interpreter . . . . . . . . . . . . . 9
3.2 A Sample Code of Op-handler . . . . . . . . . . . . . . . . . . . . . . 12
4 Just-in-time Compiler Supports for Andes Platform 14
4.1 Trace-Based Just-In-Time Compiler . . . . . . . . . . . . . . . . . . . 14
4.1.1 Structure of Generated Translation . . . . . . . . . . . . . . . 16
References
[1] Android Open Source Project, Aosp - dalvik technical information." .
Available: http://source.android.com/tech/dalvik/index.html
[2] Android Open Source Project, Dalvik executable format: .dex le." . Available: http:
//source.android.com/tech/dalvik/dex-format.html
[3] Android Open Source Project, Bytecode for the dalvik vm." . Available: http://source.android.
com/tech/dalvik/dalvik-bytecode.html
[4] Andes Technology Corporation, Overview of andes technology corporation."
[Online]. Available: http://www.andestech.com/en/about/overview.htm
[5] Andes Technology Corporation, Andestar isa." . Available: http://www.andestech.com/en/
products/AndeStar.htm
[6] Andes Technology Corporation, Andeshape: Adp-ag102.". Available: http://www.andestech.
com/en/products/AndeShape.htm
[7] Pendragon Software Corporation, Ca einemark3.0." . Available:
http://www.benchmarkhq.ru/cm30/
[8] 0xlab, 0xbench." . Available: https://code.google.com/p/0xbench/
(此全文限內部瀏覽)
電子全文
摘要
 
 
 
 
第一頁 上一頁 下一頁 最後一頁 top
* *