In the DVM architecture where is the machine code?

184 Views Asked by At

Have been searching stackoverflow for an answer but to no avail. From a link in this site How an Android application is executed on Dalvik Virtual Machine. There is a diagram of the code compiling flow

enter image description here

Simple question is where is the machine code(or the final code or the native instructions)?

Is the dalvik byte code the machine code(the final converted or compiled code)?

Or there is another compilation step?

Also where is the traced JIT compilation present in among the block?Is it in DEX compiler or in DVM?

Thanks for your time.

1

There are 1 best solutions below

0
On

Ok think have found an answer.

1.Compilation flow

.java file -- given to -- java compiler -- to generate -- .class file.

all .class files -- given to -- dx tool -- to generate single -- dex file

dex file -- given to -- dvm -- to generate -- final machine code.

final machine code -- given to -- CPU -- to execute.

2.A JIT compiler is a feature of JVM that compiles chunks of JVM instructions to native machine code.

If there is any misintepretation please notify in comments.Will fix the answer.

Thanks for your time.