DalvikVM VS JavaVM的Andr​​oid中? [英] DalvikVM Vs JavaVM in Android?

查看:120
本文介绍了DalvikVM VS JavaVM的Andr​​oid中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一般的Andr​​oid运行的每个应用程序在Dalvik虚拟机一个单独的进程。我从文档了这一点。但我不明白什么是主要的原因去Dalvik虚拟机为Android。什么是它比Java虚拟机的优势。分享你的知识。它帮助。

In General, Android runs the each App as a seperate process in Dalvik Vm. I got this from the Doc. But i can not understand what is the main reason to go to Dalvik VM for Android. What are the Advantages it has than Java VM. Share your Knowledge. It helps.

在此先感谢。

推荐答案

这是我发现了一些差异...

A few differences that i found...

                    Dalvik          Vs          JVM

Architecture        Register                    Stack
OS Support          Android                     Multiple
Re- Tools           few                         many
Executables         APK                         JAR
Constant-Pool       Per Application             Per class

除了这个

Dalvik的有能力,你必须在你的应用COM preSS资源有减少最终的apk文件的大小,使虚拟机高效的设备运行多个实例

Dalvik has the capacity to compress resources that you have in your application there by reducing the final apk size and makes the device run multiple instances of the VM efficiently

虚拟机被精简下来,以使用更少的空间

The VM was slimmed down to use less space

优化最小的内存占用。

这是Android 2.2的SDK的Dalvik得到了一个即时编译器

From Android 2.2 SDK Dalvik has got a Just in Time compiler

关于许可证

Dalvik的据说是一个洁净室执行,而不是一个标准的Java运行时之上的发展,这将意味着它不会继承无论是标准版还是开源版的Java的基于版权的许可限制运行时。 Dalvik的是在Apache 2许可发布的。 (来源:维基百科

Dalvik is said to be a clean-room implementation rather than a development on top of a standard Java runtime, which would mean it does not inherit copyright-based license restrictions from either the standard-edition or open-source-edition Java runtimes. Dalvik is published under the Apache 2 license. (Source: wikipedia)

您还可以阅读关于以下链接

You can also read more information regarding the same on the following links

<一个href="http://$c$c.google.com/events/io/2010/sessions/jit-compiler-androids-dalvik-vm.html">http://$c$c.google.com/events/io/2010/sessions/jit-compiler-androids-dalvik-vm.html

<一个href="http://en.wikipedia.org/wiki/Dalvik_%28software%29">http://en.wikipedia.org/wiki/Dalvik_%28software%29

<一个href="http://2009.confidence.org.pl/materialy/$p$pzentacje/marc_schoenefeld_reconstructing_confidence_2009.pdf">http://2009.confidence.org.pl/materialy/$p$pzentacje/marc_schoenefeld_reconstructing_confidence_2009.pdf

这篇关于DalvikVM VS JavaVM的Andr​​oid中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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