共查询到20条相似文献,搜索用时 15 毫秒
1.
在嵌入式Java芯片中使用即时编译技术 总被引:1,自引:0,他引:1
Java虚拟机具有面向堆栈与面向对象的特点,不利于硬件有效支持字节码的直接执行,传统JIT也不适应嵌入式系统的应用环境,介绍了在自行设计的嵌入式Java芯片中使用JIT的技术途径,通过对Java虚拟机堆栈和复杂指令的支持,密切配合JIT软件,较好地解决了Java芯片设计中的问题。测试结果表明,相对于目前前界最好的picoJava-Ⅱ内核而言内核而言,JC401的编译后代码性能提高了1.2至1.9倍,在硬件复杂度、执行速度、内存开销等方面都有较大程度的改善,适合于嵌入式应用。 相似文献
2.
基于J2ME技术的嵌入式系统的开发 总被引:13,自引:0,他引:13
J2ME技术为无线设备提供了一个安全的、可移植的嵌入式开发平台,可以支持多种设备和多个操作系统的应用环境。本文介绍了J2ME技术的体系结构,功能优点以及开发步骤。并且以“移动QQ”为例,着重讨论了J2ME平台上进行嵌入式开发的重要问题。 相似文献
3.
Java uses exceptions to provide elegant error handling capabilities during program execution. However, the presence of exception handlers complicates the job of the just‐in‐time (JIT) compiler, while exceptions are rarely used in most programs. This paper describes two techniques for reducing such complications. First, we delay the translation of an exception handler until the exception really occurs. This on‐demand translation of exception handlers allows more optimizations when translating the main flow, without being hindered by constraints caused by the exception flows. Secondly, for those exceptions that are actually thrown during program execution we insert exception‐type check code and a direct branch to the translated exception handlers. This exception handler prediction is motivated by an observation that frequently thrown exceptions are likely to be handled by the same exception handlers, so this will eliminate the exception processing overhead of the Java virtual machine. Our experiments indicate that the code quality of the main flow is no longer affected by the presence of exception handlers. Also, frequently thrown exceptions can be efficiently handled by the exception handler prediction. Copyright © 2004 John Wiley & Sons, Ltd. 相似文献
4.
Java supports the monitor construct for language‐level synchronization in the context of multi‐threading. This paper introduces the lightweight monitor, an efficient user‐level monitor implementation. The lightweight monitor is useful for single‐threaded Java programs as well as for multi‐threaded Java programs with little lock contention. A 32‐bit lock is embedded in each object for efficient lock access while other monitor data structures are managed using a hash table. We highly optimized the lock manipulation code, which is translated and inlined by a just‐in‐time (JIT) compiler. In the most probable cases, only nine SPARC instructions are spent for lock acquisition and five instructions are spent for lock release. Our experimental results indicate that the lightweight monitor is faster than the monitor implementation in the SUN JDK 1.2 RC1 by up to 21 times in the absence of lock contention and by up to seven times in the presence of lock contention. Copyright © 2004 John Wiley & Sons, Ltd. 相似文献
5.
Method calls in object oriented languages, such as Java, are bound at run-time, making the method binding technique very important for the performance of the language. Efficient implementations can rely on having additional memory and/or processing power available either to store lookup tables or to allow for the construction of caches or rewriting of instructions during runtime. These are luxuries not always available on mobile devices such as mobile phones, tablets, etc. In this paper we describe a novel way of tokenising and compressing method dispatch tables to provide an efficient dispatch process which could be implemented in hardware in only a few operations. We demonstrate this in the context of Java, also showing a significant reduction in size for the resulting class files. 相似文献
6.
J2ME是SUN针对嵌入式设备而开发的新一代JAVA平台,J2ME的安全结构与安全性能成为一个重要的、急需研究的问题,本文首先探讨了J2ME的基本特点与结构,并简要介绍了J2ME的两种配置,CDC和CLDC,然后讨论了JDK的安全结构,着重比较了CDC和CLDC与JDK在安全方面的变化,分析这种变化所造成的CDC和CLDC设备在安全性方面的特点。 相似文献
7.
Early Java implementations relied on interpretation,leading to poor performance compared to compiled programs,Java just-in-time(JIT) compiler can compile Java programs at runtime,so it not only improves Java‘s performance prominently,but also preserves Java‘s portability.In this paper the design and implementing techniques of Java JIT complier based on Chinese open system are discussed in detail.To enhance the portability,a translating method which combines the static simulating method and macro expansion method is adopted.The optimization technique for JIT compiler is also discussed and a way to evaluate the hotspots in Java programs is presented.Experiments have been conducted to verify JIT compilation technique as an efficient way to accelerate Java. 相似文献
8.
Wang Yongcheng 《计算机科学技术学报》1987,2(4):287-291
In addition to Chinese character I/O, one of the most important issues for Chinese informationprocessing is automatic extraction of words from textual data. Having discussed the characteristics ofChinese words and sentences, we proved in this paper that this problem cannot be thoroughly resolved.Then, various algorithms for extraction of words from Chinese sentences are reviewed. Finally, a newalgorithm is put forward, based on which a highly automatic Chinese information processing system hasbeen developed. 相似文献
9.
J2ME是一种针对移动电话和PDA的小型设备的Java语言,其极大地扩展了移动的电话应用范围,可以实现很强的娱乐性和趣味性的功能。本文在介绍J2ME主要技术基础上,提出了自己的设计方案,设计了一个手机游戏,并对系统中的一些关键技术进行讨论,最后对手机游戏的发展方向进行了展望。 相似文献
10.
Java语言面向对象的优势使得开发游戏变得非常容易。作为IT产业的剩余部分,游戏行业中最新的热点就是可移动性。程序的界面和运作方式继承于传统的PC游戏,使用J2ME技术将PC游戏泡泡龙移植到手机上来。着重介绍了J2ME的相关技术及本程序的结构分析、定义画面及跳转算法的细节实现。 相似文献
11.
随着手机用户的快速增多,手机的应用软件和游戏需求越来越大。基于J2ME技术的软件开发和游戏开发可移植性强,功能强大。本文选择J2ME作为开发语言,介绍手机游戏开发的一般流程,包括地图设计、动画效果、参数设置、子弹碰撞检测等;最后给出游戏的测试效果。 相似文献
12.
13.
汪永松 《电脑编程技巧与维护》2011,(7):49-54
介绍了将对象数据库Db4o的开发包(SDK)移植到J2ME平台,并以Db4o数据库为引擎,开发一款日记账簿工具的实践过程。通过此开发案例,不仅可以了解J2ME平台移植的模式和要点,而且还可以了解在J2ME平台中开发Db4o数据库程序的过程和特点。 相似文献
14.
15.
提出了一种改善J2ME中多维数组运算效率的方法。该方法不占用额外的内存,不需要修改虚拟机,通过静态修改已经编译好的Java字节码提高多维数组运算效率。实验表明,本方法比现有针对J2SE的多维数组运算效率解决方法更适用于J2ME环境。 相似文献
16.
陈小玉 《电脑编程技巧与维护》2005,(11):60-63
简要介绍J2ME的模拟器WTK2.2的安装使用,给出了TilePuzzle拼图游戏的代码编写、调试、打包、安装、运行及发布全过程. 相似文献
17.
基于J2ME的Java手机游戏开发技巧 总被引:2,自引:0,他引:2
在众多手机游戏开发技术中,J2ME由于开发速度快、周期短、支持手机多、开发资源丰富等优点成为当今最受欢迎的手机游戏开发平台.本文简要介绍了J2ME和MIDP,给出了手机游戏开发中的几个实现技巧. 相似文献
18.
介绍了J2ME主要技术,设计了一个手机游戏,并对系统中的一些关键技术进行了讨论,对手机游戏的发展方向进行了展望。 相似文献
19.
一、概述近来,具有平台无关、面向对象等诸多特点的Java语言得到了迅速的发展,以即时编译技术(JIT)为代表的软件实现的Java虚拟机在桌面系统中日趋成熟,在运行速度、内存需求、实时性能等方面都有较大的提高,以网页中的Java小程序为主的Java应用大量涌现,具备了一定的应用基础。 相似文献
20.
一种嵌入式Java芯片内核--JC401 总被引:3,自引:0,他引:3
首先分析了目前Java的应用情况,指出嵌入式Java芯片具有很大的市场需求,然后结合嵌入式系统的特点简单分析了当前几种Java虚拟机实现技术的缺点,提出了在嵌入式Java芯片内核JC401中采用瘦型JIT的设计思想。通过对JIT的硬件支持和相关软件的配合,达到减少JIT运行时间和内存开销,获得高效的Java性能与较好的性能价格比的目标,然后具体介绍了JC401内核的总体结构与主要技术特点,进行了性能分析与评估,证明了设计思想的正确性,最后举例说明JC401具有很好的市场前景。 相似文献