Satheesh Reddy
Why android uses DVM, why not JVM?
By Satheesh Reddy in Android on Jan 21 2014
  • Munesh Sharma
    Apr, 2014 23

    Conceptually, there is little difference from an application level between a DVM and a JVM. Architecturally, there is a major difference between the registerbased DVM and the stack-based JVM.Both use a VM code model. However, the DVM uses registerbased opcodes that are comparable to the register-based bytecode instructions that most of the target platforms already execute. This includes architectures such as those available from ARM and MIPS and the x86-compatible architectures from Intel, AMD, and VIA Technologies.Google developed Android and chose DVM for several reasons. First, there were licensing issues with most JVMs. Next, the DVM should be more efficient in terms of memory usage and performance on a register-based machine. DVM is also supposed to be more efficient when running multiple instances of the DVM. Applications are given their own instance. Hence, multiple active applications require multiple DVM instances. Like most Java implementations, the DVM has an automatic garbage collector.

    • 2
  • Neha Topiwala
    Dec, 2019 5

    DVM(Dalvik Virtual Machine) is Register based which is designed to run on low memory, uses its own byte code to runs .dex fileJVM(Java Virtual Machine) is Stack-based which uses java byte code and runs .class file having JIT.

    • 0

Most Popular Job Functions