Dalvik virtual machine

本文介绍了Dalvik虚拟机的基本信息,包括其作为寄存器型虚拟机的特点、针对低内存需求进行优化的设计理念以及与标准Java虚拟机的区别。此外,还详细解释了Dalvik与Java的关系,以及dx工具如何将Java字节码转换为Dalvik可执行的.dex格式。

reference  http://blogs.sun.com/jrose/entry/with_android_and_dalvik_at

                http://www.onlamp.com/pub/a/onlamp/2007/11/12/google-calling-inside-the-gphone-sdk.html

 

1, basic information

   1)  The Dalvik virtual machine is a register-based virtual machine. written by Dan Bornstein

   2) It is optimized for low memory requirements, and is designed to allow multiple VM instances to run at once, relying on the underlying   operating system for process isolation, memory management and threading support.

 

 

2, specific characteristics that differentiate it from other standard VM

   1)The VM was slimmed down to use less space

   2)Dalvik has no Just-in-time compiler

   3)The constant pool has been modified to use only 32-bit indexes to simplify the interpreter

 

3,Relationship to Java

   Dalvik is often referred to as a Java Virtual Machine, but this is not strictly accurate, as the bytecode on which it operates is not Java bytecode. Instead, a tool named dx, included in the Android SDK, transforms the Java Class files of Java classes compiled by a regular Java compiler into another class file format (the .dex format).

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值