摘要
在移动应用开发中,为了将J2ME技术应用到ARM9嵌入式平台上,需要事先在该ARM9平台上成功移植KVM。但是,在将SUN公司的CLDC 1.1参考实现移植到ARM9平台的过程中,由于编译工具版本更新导致的编译工具与参考实现之间的版本不兼容问题,影响了KVM的成功移植。为此,研究了KVM的代码执行机制,并分析了SUN公司的CLDC 1.1参考实现的build过程。在此基础上,采用目前主流编译器来移植KVM,对编译生成KVM各个阶段产生的所有错误和警告进行了深入分析,并给出了消除那些影响移植结果的错误和警告的适当解决方法。所提出的解决方法不仅实现了参考实现源码的成功编译,而且提高了移植后KVM程序的健壮性。KVM移植测试的实验结果表明,KVM成功地被移植到了ARM9+Embedded Linux平台上。
In mobile application development,we need to successfully port KVM to ARM9 embedded platforms before we use J2ME technology on ARM9 platforms.However,in the process of porting SUN's CLDC 1.1 reference implementation to ARM9 platforms,the version incompatibility problem between compiling tools and the reference implementation,which is brought by version updating of compiling tools,leads to failure in KVM porting.This paper studies the mechanism of executing KVM code,and analyses the building process of SUN's CLDC 1.1 reference implementation.Based on this work,the paper uses currently popular compiling tools to port KVM,analyses in depth all the errors and warnings produced in phases of building KVM,and gives the appropriate solutions to eliminate those errors and warnings which affect the porting result.Solutions proposed in the paper not only achieve the success of compiling reference implementation source code but also improve the robustness of ported KVM programs.The experimental results of KVM porting tests show that KVM is successfully ported to an 'ARM9 + Embedded Linux' platform.
出处
《计算机时代》
2012年第5期22-25,28,共5页
Computer Era
基金
湖南省大学生研究性学习和创新性实验计划项目(3080102-1203009(2010年113号))