基于CK810的Android系統移植研究
發(fā)布時間:2018-03-23 18:24
本文選題:Android 切入點:系統移植 出處:《浙江大學》2014年碩士論文
【摘要】:Android是Google公司針對嵌入式領域推出的一款操作系統,因其開源和開放的特性,在一推出不久就備受推崇,今年來更是移動終端設備的裝機數量上占據著絕對的領先優(yōu)勢。而CK810是由杭州中天微系統有限公司和浙江大學超大規(guī)模集成電路研究所聯合研發(fā)的、全自主知識產權高性能32位嵌入式CPU,有著極其廣闊的發(fā)展前景。本課題的目標是在對Android系統進行深入和詳細的研究和分析的前提下,基于CK810的SOC平臺進行Android4.0.3版本的系統移植和優(yōu)化,為國產嵌入式CPU在市場上的推廣添磚加瓦,從而加快CK810產業(yè)化進程。本文首先對Android系統和基于CK810的SOC平臺進行簡單的概述,并對Android系統的發(fā)展、架構和開發(fā)方向等進行詳細說明。其次,本文針對移植工作的原理和機制進行系統性剖析,主要移植模塊包括Linux內核、Bionic庫以及Dalvik虛擬機。再次,本文重點描述了Android系統移植的具體實現,涉及關鍵技術:1)Linux內核移植,包括CK810新體系結構的內核實現、Android的專用驅動等;2) Bionic的移植,包括動態(tài)鏈接器等;3)Dalvik虛擬機移植,包括針對CK810新體系結構的Mterp解釋器、JNI調用橋和JIT編譯模塊,Dalvik虛擬機的移植和優(yōu)化也是本課題的重點,特別是JIT模塊的移植更是整個課題的關鍵難點。同時,通過對機器碼的分析,提出并實現了針對JIT模塊的Trace合并和寄存器優(yōu)化。最后,本文對成功移植的Android系統進行性能評估和測試,結果表明Mterp匯編型解釋器的性能是Dalvik自帶的C語言版本解釋器1.3倍,再加上JIT編譯模塊后性能上更是達到了C語言版本解釋器的3.8倍,而優(yōu)化后的Dalvik可以提高性能8.9%。
[Abstract]:Android, an operating system launched by Google for the embedded world, has been highly admired for its open source and open features. This year, the number of mobile terminal devices occupies an absolute leading position. And CK810 is jointly developed by Hangzhou Zhongtian Microsystem Co., Ltd and the Institute of VLSI of Zhejiang University. Full-independent intellectual property rights with high performance 32-bit embedded CPUs have a very broad prospect of development. The goal of this project is to study and analyze the Android system in depth and in detail. The SOC platform based on CK810 is used to transplant and optimize the system of Android4.0.3 version, which contributes to the promotion of domestic embedded CPU in the market and speeds up the process of CK810 industrialization. Firstly, this paper gives a brief overview of the Android system and the SOC platform based on CK810. And the development, architecture and development direction of Android system are described in detail. Secondly, this paper systematically analyzes the principle and mechanism of the transplantation work. The main migration modules include the Linux kernel Bionic library and the Dalvik virtual machine. This paper focuses on the implementation of Android system porting, which involves the key technology of Android kernel transplantation, including the kernel implementation of the new CK810 architecture, the special driver of CK810, etc.) the migration of Bionic, including dynamic linker and so on, includes the transplanting of Dalvik virtual machine. The transplantation and optimization of Dalvik virtual machine, including the Mterp interpreter for the new architecture of CK810 and the JIT compiler module, are also the key points of this thesis, especially the transplantation of JIT module is the key and difficulty of the whole project. Through the analysis of machine code, the Trace merge and register optimization for JIT module are proposed and realized. Finally, the performance of successfully transplanted Android system is evaluated and tested in this paper. The results show that the performance of the Mterp assembler is 1.3 times higher than that of the C version interpreter with Dalvik, and the performance of the JIT compiler is 3.8 times higher than that of the C language interpreter, and the optimized Dalvik can improve the performance of the C language interpreter by 8.9 times.
【學位授予單位】:浙江大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP311.54
【參考文獻】
相關期刊論文 前10條
1 王立冬,張凱;Java虛擬機分析[J];北京理工大學學報;2002年01期
2 胡偉;;Android系統架構及其驅動研究[J];廣州廣播電視大學學報;2010年04期
3 武建平;時龍興;凌明;曹聞世;;Unicore架構下的Dalvik虛擬機優(yōu)化[J];東南大學學報(自然科學版);2013年01期
4 葉云;李春強;胡軍山;;基于CK610的Dalvik虛擬機移植與優(yōu)化[J];計算機工程;2011年16期
5 江健勇;李春強;胡軍山;;基于CK-CPU的Linux2.6實時性能優(yōu)化[J];計算機工程;2011年17期
6 吳少剛;鄒國民;;Dalvik虛擬機在龍芯平臺上的移植與實現[J];計算機工程;2011年22期
7 雷鳴;靳婷;徐曉亮;齊錦;;面向龍芯平臺的Android系統移植研究[J];計算機工程與應用;2012年22期
8 張藍博;張善從;陳蔚薇;;嵌入式系統中的代碼動態(tài)鏈接模型[J];計算機工程與設計;2008年16期
9 倪紅軍;周巧扣;李霞;葛云峰;;基于“軟件工廠”的Android開發(fā)工程師培養(yǎng)模式探討[J];實驗技術與管理;2013年09期
10 周毅敏;陳榕;;Dalvik虛擬機進程模型分析[J];計算機技術與發(fā)展;2010年02期
,本文編號:1654641
本文鏈接:http://sikaile.net/falvlunwen/zhishichanquanfa/1654641.html