One of Android Basics

Source: Internet
Author: User

1:android system Architecture (emphasis)

Layered architecture

JNI Java Native Interface
1.application: Application layer; Java
2.application Framework: Application framework layer, JAVA+JNI
3.libraries and Dalvik: function library and virtual machine layer, C + +
4.linux Kernel:linux Core driver layer, C

2: The difference between two types of virtual machines

Copyright issues:
Jvm:java Virtual machine Sun JVM:. Java--javac--and jar----jar
Schema: Stack (stack is a piece of space in memory that requires CPU addressing)
Dvm:dalvik Virtual machine Google DVM:. Java--Javac----and Dx.bat---Dex
Schema: Register (a high-speed cache on the CPU, no addressing required)

Difference:
1. Based on the different architectures, the JVM is based on the stack architecture, and the stack is a space in memory, which executes the instruction operation and needs to be addressed to the CPU;
The DVM is based on the register architecture, which is an integral part of the CPU and performs instruction operations without addressing it directly.
2. The format of the executable file is different, and the JVM executes multiple. class files. The DVM executes a. dex file

One of Android Basics

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.