为什么安卓虚拟机比iOS和WP7虚拟机慢得多? 理由如下。
1. Android模拟器的目标体系结构是arm(arm-eabi ),而iOS和WP7模拟器的目标体系结构是x86,运行在iOS模拟器上的App也编译为x86 因此,Android模拟器需要二进制翻译工作。 qmu严格来说不是虚拟机,而是“模拟器”,由软件分析guest os执行的命令(arm命令)后执行。
2 .安卓模拟器使用的是QEMU的全系统模式(full system )。 这意味着在模拟过程中,必须启动整个来宾系统并初始化各种模拟设备。 相反,iOS和WP7的模拟器只是user-mode的模拟。
QEMU has two操作模式:
- fullsystememulation.in this mode,qemuemulatesafullsystem (for example APC ), includingoneorseveralprocessorsandvariousperipherals.itcanbeusedtolaunchdifferentoperatingsystemswitrebootingthepcortodep
- User mode emulation. In this mode,qemucanlaunchprocessescompiledforonecpuonanothercpu。
=========================================================================================
=========================================================================================