Does Android castrate the ARM's Jazelle technology?

前端 未结 3 1092
梦如初夏
梦如初夏 2021-02-05 01:17

The justification that I\'ve seen for shall we say \"Bastardizing\" the Java bytecodes in Android was performance. (I suspect there is another reason.) However by changing the

3条回答
  •  悲哀的现实
    2021-02-05 02:11

    Yes Dalvik makes Jazelle useless. The only question is was Jazelle useful to begin with or is it 90% marketing hype? A good JIT or AOT(ahead of Time) compiler tends to give much better performance than trying to use specialized instructions. The register based approach of Dalvik might be faster than a traditional java bytecode interpreter but if the difference in minor between that of an interpreter and that of a JIT. Hopefully one of the next versions of Android has a JIT.

    It takes ~5-10 years to write a good virtual machine with state of the art garbage collectors and optimizers. Sun (and Microsoft) have spent those years. Google hasn't. Hopefully they will keep investing in it so that one day Android Java code isn't a 90% slower than it should be.

提交回复
热议问题