android uses Dalvik virtual machine(DVM) than Java virtual machine(JVM)
안드로이드는 Java virtual machine(JVM) 대신에 Dalvik virtual machine(DVM) 을 사용한다.
.class files are comfiled to one .dex file by Dex compiler and .dex file loaded in APK with resource
여러 .class file 들은 Dex compiler에 의해 하나의 .dex 파일로 컴파일 된다.
.dex 파일은 APK에 resource 와 같이 로드 된다. 즉 APK는 resource 와 dex 로 구성된다.
Android uses DVM instead of jVM the one of the main reasons is it follows the register
based model and it is much faster than stack based model which takes a lot of memory
안드로이드가 JVM대신에 DVM을 사용하는 중요한 이유중 하나는 DVM은 레지스터를 기초로하는 모델로 훨씬 빠르기때문이다. JVM은 스택을 기초로하는 모델이며 메모리를 많이 필요로한다.
DVM suports Android operating system only.
DVM은 안드로이드 시스템만 지원한다.
JVM is slower than DVM and heavy compare with DVM
JVM은 DVM보다 느리며 무겁다.
DVM: executable is APK.
JVM: executable is JAR.
#참조
'안드로이드' 카테고리의 다른 글
ELF (0) | 2021.03.22 |
---|---|
JVM (0) | 2021.03.06 |
JRE. JDK (0) | 2021.03.05 |
Java Bytecode 자바 바이트 코드 (0) | 2021.03.04 |