基于CK-CPU的Android SDK研究与设计

发布时间:2018-07-03 07:01

  本文选题:CK-CPU + Android ; 参考:《浙江大学》2014年硕士论文


【摘要】:随着Android系统的日益推广,基于Android SDK的应用开发变得越来越流行。Android SDK软件开发工具包包含了一套完备的开发工具,其中包括Android系统底层的二进制映像、调试器、手机模拟器、文档、示例代码和教程等内容。CK-CPU是杭州中天微系统有限公司在国家863、核高基重大专项等政府重大科技项目支持下研发的自主知识产权嵌入式CPU核,采用自主设计的16/32位混编指令集,具有低功耗、高性能、高代码密度以及易使用等优点。本文在仔细分析了Android SDK的基础上,将该课题的研究内容总结为以下两点:CK-CPU的Android模拟器emulator-csky的开发;整合AndroidSDK的各种工具集资源,使用户可以基于该平台方便的开发Android应用程序并且完成调试的工作。 Android模拟器是基于动态二进制翻译技术的手机模拟器,可以无需使用物理设备即可开发、测试Android应用程序。动态二进制翻译技术是在程序运行过程中对源程序进行翻译的技术,它可以克服静态翻译的不足,利用动态信息对源程序进行优化翻译。模拟器emulator-csky的设计是本课题研究的重点与难点,我们重点研究了模拟器的架构和各个模块的实现原理,将模拟器分成四个部分分别设计,分别是CK-CPU模拟、动态翻译引擎、设备管理模块以及外围IP的实现。在模拟csky处理器的过程中,我们用软件模拟了硬件MMU、异常处理和标志位;动态翻译引擎tcg负责将CK-CPU指令集翻译成微指令,最后生成目标机机器码,并介绍了翻译的基本单元tb和tb管理机制;设备管理模块负责管理设备的创建和消除,在本节中我们介绍了模拟器的设备管理qdev机制:最后一个部分是外围IP的模拟,我们模拟了定时器、中断控制器、MAC、UART和LCD控制器等外围设备,将这些设备挂载到模拟的总线上,和其它三个部分一起形成了完备的模拟器系统。针对动态二进制翻译过程中库函数的包装,本文提出了一种库函数的自动包装技术,能够有效的提升动态二进制翻译系统的效率。我们在文章的最后介绍了基于CK-CPU的Android SDK开发例程,发了一个简单的"Hello World"应用程序。
[Abstract]:With the increasing promotion of Android system, the application development based on Android SDK has become more and more popular. The software development toolkit of Android SDK includes a set of complete development tools, including the binary image, debugger and mobile simulator of Android system. Documents, sample codes, tutorials, etc. CK-CPU is an embedded CPU core of independent intellectual property rights developed by Hangzhou Zhongtian Microsystems Co., Ltd., with the support of major government scientific and technological projects such as the National 863, Nuclear High Foundation, and other major scientific and technological projects. It has the advantages of low power consumption, high performance, high code density and easy to use. Based on the detailed analysis of the Android SDK, this paper summarizes the research contents of this topic as follows: the development of Android simulator emulator-csky of the following two points: the integration of various tools resources of the Android SDK, Android simulator is a mobile phone simulator based on dynamic binary translation technology, which can be developed without physical devices. Test the Android application. Dynamic binary translation is a technique for translating source programs in the process of program operation. It can overcome the shortcomings of static translation and optimize the translation of source programs by using dynamic information. The design of simulator emulator-csky is the focus and difficulty of this research. We focus on the architecture of simulator and the realization principle of each module. The simulator is divided into four parts, namely, CK-CPU simulation, dynamic translation engine. Implementation of device management module and peripheral IP. In the process of simulating csky processor, we use software to simulate hardware MMU, exception handling and flag bit, dynamic translation engine tcg is responsible for translating CK-CPU instruction set into microinstruction, finally generating target machine code. In this section, we introduce the device management qdev mechanism of simulator. The last part is the simulation of peripheral IP. We simulate the peripheral devices, such as timer, interrupt controller, MACU UART and LCD controller, and mount these devices onto the analog bus, and form a complete simulator system together with the other three parts. In view of the packaging of library functions in the process of dynamic binary translation, this paper proposes an automatic packaging technology of library functions, which can effectively improve the efficiency of dynamic binary translation systems. At the end of the article, we introduce the Android SDK development routine based on CK-CPU and send a simple "Hello World" application.
【学位授予单位】:浙江大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.52

【参考文献】

相关期刊论文 前3条

1 杨浩;唐锋;谢海斌;武成岗;冯晓兵;;二进制翻译中的库函数处理[J];计算机研究与发展;2006年12期

2 谢海斌;张兆庆;武成岗;冯晓兵;;二进制翻译中系统库函数的分类处理方法[J];计算机应用研究;2008年04期

3 姚昱e,

本文编号:2092828


资料下载
论文发表

本文链接:https://www.wllwen.com/falvlunwen/zhishichanquanfa/2092828.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户1f521***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com