基于CK810的Android系统移植研究
发布时间:2018-03-23 18:24
本文选题:Android 切入点:系统移植 出处:《浙江大学》2014年硕士论文
【摘要】:Android是Google公司针对嵌入式领域推出的一款操作系统,因其开源和开放的特性,在一推出不久就备受推崇,今年来更是移动终端设备的装机数量上占据着绝对的领先优势。而CK810是由杭州中天微系统有限公司和浙江大学超大规模集成电路研究所联合研发的、全自主知识产权高性能32位嵌入式CPU,有着极其广阔的发展前景。本课题的目标是在对Android系统进行深入和详细的研究和分析的前提下,基于CK810的SOC平台进行Android4.0.3版本的系统移植和优化,为国产嵌入式CPU在市场上的推广添砖加瓦,从而加快CK810产业化进程。本文首先对Android系统和基于CK810的SOC平台进行简单的概述,并对Android系统的发展、架构和开发方向等进行详细说明。其次,本文针对移植工作的原理和机制进行系统性剖析,主要移植模块包括Linux内核、Bionic库以及Dalvik虚拟机。再次,本文重点描述了Android系统移植的具体实现,涉及关键技术:1)Linux内核移植,包括CK810新体系结构的内核实现、Android的专用驱动等;2) Bionic的移植,包括动态链接器等;3)Dalvik虚拟机移植,包括针对CK810新体系结构的Mterp解释器、JNI调用桥和JIT编译模块,Dalvik虚拟机的移植和优化也是本课题的重点,特别是JIT模块的移植更是整个课题的关键难点。同时,通过对机器码的分析,提出并实现了针对JIT模块的Trace合并和寄存器优化。最后,本文对成功移植的Android系统进行性能评估和测试,结果表明Mterp汇编型解释器的性能是Dalvik自带的C语言版本解释器1.3倍,再加上JIT编译模块后性能上更是达到了C语言版本解释器的3.8倍,而优化后的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虚拟机优化[J];东南大学学报(自然科学版);2013年01期
4 叶云;李春强;胡军山;;基于CK610的Dalvik虚拟机移植与优化[J];计算机工程;2011年16期
5 江健勇;李春强;胡军山;;基于CK-CPU的Linux2.6实时性能优化[J];计算机工程;2011年17期
6 吴少刚;邹国民;;Dalvik虚拟机在龙芯平台上的移植与实现[J];计算机工程;2011年22期
7 雷鸣;靳婷;徐晓亮;齐锦;;面向龙芯平台的Android系统移植研究[J];计算机工程与应用;2012年22期
8 张蓝博;张善从;陈蔚薇;;嵌入式系统中的代码动态链接模型[J];计算机工程与设计;2008年16期
9 倪红军;周巧扣;李霞;葛云峰;;基于“软件工厂”的Android开发工程师培养模式探讨[J];实验技术与管理;2013年09期
10 周毅敏;陈榕;;Dalvik虚拟机进程模型分析[J];计算机技术与发展;2010年02期
,本文编号:1654641
本文链接:https://www.wllwen.com/falvlunwen/zhishichanquanfa/1654641.html