摘要
Dalvik是Google公司自己设计用于Android平台的Java虚拟机,Andriod系统不支持所有构架的特性使将andriod系统移植到基于国产内核Unity的Soc的SoC SEP0611上有着大量的工作。对Dalvik虚拟机平台相关性和无关性进行分析,使对虚拟机的移植有了基本认识和实现基础,同时介绍了我们自主研发的基于国产自主内核的SoC,将与基于国产内核Unity架构平台相关的JNI(Java Native Interface)机制进行分析,找到了移植的关键环节本地调用桥(Callbridge),同时对Dalvik虚拟机优化的进行了分析与研究,找到了解释器优化的最好途径,即用汇编重写解释器,并初步探讨了JIT(Just In Time)编译器的实现方法。通过实现本地调用桥,实现了Dalvik虚拟机在SEP0611国产自主SoC上的移植。
Dalvik is a Java virtual machine which is used in Android platform.The Android system does not support all architecture.As a result,we should do a lot of work in order to port the Android system to our SEP0611 platform,which is a SoC based on Unity architecture.The thesis analyzed the architecture related and unrelated part of Dalvik virtual machine,which formed a basic knowledge of porting the virtual machine.SEP0611 SoC,which is based on domestic CPU core is also introduced.After analyzing the architecture related JNI Mechanism,we found that Callbridge is the key stage for porting.We also analyzed the way to optimize Dalvik virtual machine and fount out the best way to optimize the interpreter,which is to used assembly to re-writing the interpreter.We also analyzed the way to implement JIT compiler.The Davik virtual machine is finally ported to SEP0611 through implementing native Callbridge.
出处
《电子器件》
CAS
北大核心
2012年第3期322-326,共5页
Chinese Journal of Electron Devices