java正确理解ART/Dalvik编译
我想问你我是否正确理解编译过程
将Android应用程序导出到。我们收到的apk文件字节码(.apk)
当我们想在Android设备上启动我们的应用程序时:
Dalvik:
byte code (.apk) -> Dalvik VM JIT compilation -> compiled native code -> execution of the programme (whole programme is allocated in the memory)
每次启动应用程序时都会执行Dalvik JIT编译
艺术:
安装:
byte code (.apk) -> ART VM AOT compilation -> compiled native code
应用程序发布:
native code -> execution (only some part of the programme allocates memory)
AOT编译仅在应用程序安装后处理一次
共 (0) 个答案