Porting and Optimization of Dalvik Virtual Machine of Android on Loongson-based Platform

Author
ZouGuoMin
Advisor
WuShaoGang
School
China University of Petroleum
Major
Computer Science and Technology
Classification
TP302 Design and Performance Analysis
Degree
Master's thesis
Year
2011
Downloads
180
Citations
0

Request the full text

Abstract

With the promotion of Android platform in mobile termination such as cellphone and the further expansion of market-oriented of Loongson processor,it will be of great signifiance that Android is deployed to Loongson platform for the extension of Loongson-based industrialization.Dalvik virtual machine is one of core components of Android runtime environment and researching the porting and optimization techniques of Dalvik virtual machine on Loongson platform has become an urgent task in order to improve the performance of Android applications on Loongson platform.Dalvik is a high-performance Java virtual machine that Google designed for Android platform,and the architecture of Dalvik is register-based.The registers in the virtual machine will be more closely mapped to the registers on the target machine,so the Dalvik runing on the RISC machine has great advantage.On the side,a set of new instruction and the executable file format are used by Dalvik virtual machine in order to improve the performance.The realization of the Dalvik virtual machine running on the equipment which has less system resource will have better performance than the Java virtual machine.This dissertation mainly foucus on the running mechanism and realization of porting and optimization of the Dalvik virtual machine on Loongson platform.First,the bytecode instruction set and executable file format were analyzed according to the specification of Dalvik virtual machine.Then Dalvik was studied,and the internal architecture and operation mechanism of virtual machine were analysed.Then the primary function modules of Dalvik virtual machine such as class loader,constant pool analyzer,interpreter and runtime environment were studied.Later,the realization of Dalvik interpreter based on Loongson platform was presented,and the interpreter of each bytecode was realized by using assemble program of Loongson.Finally,the Dalvik JNI method invocation module was optimized according to the characteristics of Loongson,and the implementation of Dalvik JIT compiler was studied in detail.Finally,with the help of oprofile performance analysis tool,Dalvik virtual machine that had been ported to Loongson platform and that had been optimized were analyzed,after comparing the data,the result of optimizing JNI method calls for Loongson platform made an satisfying effect.

Table of contents

Abstract 4-5 Abstract 5-9 first chapter 9-14 1.1 subject background and significance - 10 1.2 topics Research the 10-12 1.2.1 Android system development status the 10-11 1.2.2 Android system based on the MIPS architecture 11-12 1.3 of this paper work 12-13 1.4 This article organizational structure 13-14 Chapter II Android system runtime environment research 14-30 2.1 Android System Introduction 14-15 2.2 the Dalvik virtual machine execution principle 15-17 2.2.1 Android system boot process 15-16 2.2.2 Zygote is the process, 16 2.2.3 the Android JNI framework Email 16-17 2.3 Dalvik virtual machine characteristics and internal structure 17-29 2.3.1 Dalvik virtual machine Overview 17-18 2.3.2 the Dalvik bytecode instruction set introduced 18-22 < br /> 2.3.3 DEX file format introduced the 22-27 2.3.4 the Dalvik virtual machine the internal structural introduced the 27-29 2.4 Chapter Summary 29 -30 Chapter Dalvik virtual machine implementation analysis the 30-44 3.1 Dalvik virtual machine running 30-31 3.2 class loading analysis 31-34 3.2.1 DEX file structure in memory 31-33 3.2.2 class loading process 33-34 3.2. the 3 class loader manifestations 34 3.3 constant pool resolution analysis nbsp 34-36 3.4 interpreter realization Analysis; 36-43 the 3.4.1 interpreter architecture research 36-37 3.4.2 bytecode interpretation of the implementation to achieve 37-38 3.4.3 Method Invocation analysis 38-40 3.4.4 JNI method call analysis the 40-42 3.4.5 explain the implementation of exception handling 42-43 3.5 Chapter Summary 43-44 Chapter transplants based the Godson platform Dalvik virtual machine optimization 44-57 4.1 the Godson Dalvik virtual machine debugging environment build 44-45 4.2 Godson JNI method call optimization 45-48 4.2.1 Godson, support procedure calls 4.2.2 based on Godson platform JNI call optimization 45-47 47-48 4.3 the Godson the Dalvik interpreter, the transplant realize 4.3.1 Godson Dalvik bytecode interpreter 48-51 achieve 48-50 Note 4.3.2 transplantation process 50-51 4.4, the Dalvik JIT compiler research 51-56 4.4.1 the Dalvik JIT compiler system structure 52-54 4.4.2 the Dalvik JIT compiler Trace way compile process 54-56 4.5 Chapter Summary 56-57 Chapter Godson Dalvik virtual machine performance analysis 57-61 the 5.1 Oprofile works About 57-58 5.2 optimized before and after the function executes distribution compared 58-59 <br / > 5.3 Chapter Summary 59-61 conclusion to References 61-63 63-66 Appendix 66-71 the academic achievements master's degree obtained during 71-72 Acknowledgements 72

Related dissertations

  1. Instruction Level Debugging Research Based on Dalvik Virtual Machine
  2. Design and Implementation of a Android-based Home Security Remote Monitoring Terminal System
  3. Research and Implementation of Vedio Surveillance System Based on Android Architecture and Smoke Detection
    ChenZhiMing ·Huaqiao University ·2013 ·Master's thesis
  4. Design and Implementation of Crane Monitoring System Based on Android
  5. Research and Implementation of Intelligent Video Surveillance System Based on Android
  6. Design and Research of Mobile Video Surveillance System Based on MJPG-Streamer
  7. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  8. Security Detection System Based on the Android Paltform
    ChenZuo ·Wuhan University of Technology ·2013 ·Master's thesis
  9. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  10. The Research of Fall Detection Based on Mobile Terminal
    ZhouMin ·Xiangtan University ·2013 ·Master's thesis
  11. Design and Implementation of a Human Activity Monitoring System Based on Smart Mobile Terminal
    WuZhongZe ·South China University of Technology ·2013 ·Master's thesis
  12. The Smart Home Control System Based on Android System
    WuJian ·Liaoning Normal University ·2012 ·Master's thesis
  13. The Design and Implementation of Android Smart Home Control System
  14. Embedded System Applications in the Smart Home
    MingHang ·Hubei University ·2013 ·Master's thesis
  15. Design and Implementation of Intelligence Home System Based on ZigBee
  16. Design and Implementation of Smart Home System Based on Android Platform
    ZhouShiWei ·Huaqiao University ·2013 ·Master's thesis
  17. Research and Design of Embedded Intelligent Bus Station Guideboard Control System
  18. The Design and Implementation of Multi-functional Smart Home System
  19. Research on Intelligent Home Furnishing system based on Android
  20. The Design and Implementation of Industrial Robot Programming Language