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