The difference between DVM and JVM _JVM

Source: Internet
Author: User

Difference One: DVM executes the. dex format File The JVM executes the. class file After the Android program is compiled, the. class file is produced, and then the Dex tool processes the. class file into a. dex file, and then packages the resource file and the. dex file into a. apk file. APK is the meaning of Android package. The JVM executes a. class file.

Difference Two: DVM is a register based virtual machine and JVM execution is a virtual machine based on virtual stacks. Register access speed is much faster than the stack, DVM can be based on hardware to achieve maximum optimization, more suitable for mobile devices.

Difference three:. class files have a lot of redundant information, and the Dex tool removes redundant information and consolidates all. class files into a. dex file. Reduced I/O operations and improved lookup speed of classes

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.