Choose the right ART / Dalvik compilation

I want to ask you if I understood the compilation process correctly.

After exporting the Android application to the .apk file, we get the byte code (.apk).

When we want to run our application on an Android device:

Dalvik:

byte code (.apk) → Dalvik VM JIT compilation → compiled native code → program execution (the whole program is allocated in memory)

This compilation of the Dalvik JIT is performed every time we welcome the application.

ART:

Installation:

byte code (.apk) -> ART VM AOT compilation -> compiled native code

Application Launch:

native code → execution (only part of the program memory is allocated)

AOT compilation is performed only once after installing the application.

+4

Source: https://habr.com/ru/post/1541043/


All Articles