Home > Android > What is Dalvik VM and What it Does

What is Dalvik VM and What it Does

  • The Dalvik VM takes the generated Java class files and combines them into one or more Dalvik Executable (.dex) files. It reuses duplicate information from multiple class files, effectively reducing the space requirement by half from a traditional .jar file.
  • Google has fine-tuned the garbage collection in the Dalvik VM, but it has chosen to omit a just-in-time (JIT) compiler, in early releases. It is anticipated that it will be part of future releases. Google reasoned that the impact of JIT compilation would not be significant.
  • Dalvik VM uses a different kind of assembly-code generation, in which it uses registers as the primary units of data storage instead of the stack. Google is hoping to accomplish 30 percent fewer instructions as a result.