The difference between a Java virtual machine and a Dalvik virtual machine

Source: Internet
Author: User

the difference between a Java virtual machine and a Dalvik virtual machine:

Java Virtual machine
Dalvik virtual Machines

Java virtual machines are stack -based. Stack-based machines must use instructions to load and manipulate data on the stack, with more commands required
The Dalvik virtual machine is a register -based

The Java virtual machine is running Java bytecode. (Java classes are compiled into one or more bytecode. class files, packaged into a. jar file, the Java virtual machine gets the appropriate bytecode from the corresponding. class file and the. jar file)

Dalvik is running the custom. Dex bytecode format. (After the Java class is compiled into a. class file, all the. class files are converted to a. dex file through a DX tool, and then the Dalvik virtual opportunity reads the instructions and data from them)

Chang has been modified to use only 32-bit indexes to simplify the interpreter. Dalvik heap and stack parameters can be changed by-XMS and-XMX

An application, a virtual machine instance, a process (all Android app threads are corresponding to a Linux thread, all running in their own sandbox, and different apps running in different processes.) Each Android Dalvik application is given a standalone Linux PID (app_*))

The difference between a Java virtual machine and a Dalvik virtual machine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.