Professional Documents
Culture Documents
LECT - 3b: Mobile-Platform Solutions: 10 March 2020
LECT - 3b: Mobile-Platform Solutions: 10 March 2020
LECT - 3b: Mobile-Platform Solutions: 10 March 2020
platform solutions
• Contains a set of Java core libraries and the Dalvik virtual machine
(VM).
• The Dalvik VM executes files in Dalvik Executable (.dex) format,
usually transformed from Java byte code to Dalvik byte code.
• Every Android application runs in its own process with its own
sandboxed instance of Dalvik VM.
• Dalvik has been optimized so that a device can run multiple VMs at
the same time efficiently.
• The kernel also provides an abstraction of the underlying hardware
for the rest of the software stack.
1.3 Application Framework Layer
• ART – used by OS which takes care of converting the code that you
write in HLP (e.g., Java) to machine code and understand by CPU.
• ART – comprises of software instructions that execute when program
is running.
2.1 JAVA Code Execution
• JIT compiler - Each time when the app is run, it dynamically translates
a part of the Dalvik bytecode into machine code.
• As the execution progresses, more bytecode is compiled and cached.
• Since JIT compiles only a part of the code, it has a smaller memory
footprint and uses less physical space on the device.
2.5 Ahead Of Time (AOT) – ART
1. https://aaltodoc.aalto.fi/bitstream/handle/123456789/16008/master_Ottka_S
anna_2015.pdf?sequence=1&isAllowed=y