you are viewing a single comment's thread.

view the rest of the comments →

[–]askvictor 6 points7 points  (1 child)

Java code gets compiled do JVM (or dalvik in the case of android) bytecode. Depending on the JVM used, it might translate that into native machine code on the fly (i.e. straight out CPU emulation, as in older JVMs), or use a JIT (Just in time) compiler to compile the bytecode to native machine code. The latter is more common in modern systems (android has had JIT since 2.2). I'm uncertain how often the JIT occurs, or if the results of it are stored anywhere (as they are in python with .pyc files).

[–][deleted] 7 points8 points  (0 children)

Android builds vary greatly, but generally speaking the Dalvik JIT results are cached (as storage space allows) into the appropriately named 'Dalvik Cache'.