太阳JVM的DalvikVM顶部 - 在Android上运行的Java字节code [英] Running Java bytecode on the Android - Sun JVM on top of DalvikVM

查看:83
本文介绍了太阳JVM的DalvikVM顶部 - 在Android上运行的Java字节code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于两个Java实现(的OpenJDK )和Android的虚拟机DalvikVM是开源必须能够实现Sun的JavaVM的顶部谷歌的DalvikVM。这将使其可以运行基于JVM的应用程序和语言(的Clojure,Jython的)外的开箱即用的机器人。

Since both the java implementation (OpenJDK) and Android's virtual machine DalvikVM are opensource it must be possible to implement Sun's JavaVM on top Google's DalvikVM. This would make it possible to run JVM based apps and languages (Clojure, Jython) out-of-the-box on the android.

有没有持续的努力产生了Sun JVM这种实现?

Is there an ongoing effort to produce such an implementation of the Sun JVM?

推荐答案

在OpenJDK利用原生code所以这将是一个不平凡的港口...至少有一个虚拟机(的JikesRVM )是用Java编写的,不幸的是它并不是一个完全的Java工作的实施。

The OpenJDK makes use of native code so it would be a non-trivial port... there is at least one VM (JikesRVM) that is written in Java, unfortunately it is not a completely working implementation of Java.

由于DalvikVM运行的从.class文件转换类应该是可能过度转换的类。那么唯一的问题是,当语言生成的字节code在飞行 - 的,这需要在程序上DalvikVM运行转换生成的字节code交给DalvikVM格式的额外步骤。

Since DalvikVM runs classes that were converted from .class files it should be possible to convert the classes over. Then the "only" issue is when languages generate bytecode on the fly - for that it would require the extra step of converting the generated bytecode over to the DalvikVM format while the program is running on the DalvikVM.

嗯....排序JITT(只是在时间翻译)的covertes类文件到一个DalvikVM文件在运行时,手机上的。我不知道如何慢,这将是。

Hmmm.... sort of a JITT (Just In Time Translator) that covertes class files to a DalvikVM files at runtime on the phone. I wonder how slow that would be.

这篇关于太阳JVM的DalvikVM顶部 - 在Android上运行的Java字节code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆