最近在看android,发现有的时候会对emulator和simulator作区别,于是查了一下相关的文章
1.Simulation is the imitation of another environment.
Simulation是对另一个环境的模拟。
Emulation is the imitation of an object as another object.
Emulation是一件事物模仿另一种事物(比如男人装扮为女人)。
详见参考1.
2.the difference between emulators and simulators is that emulators mimic the software and hardware environments found on actual devices. Simulators, on the other hand, only mimic the software environment.
emulator和simulator的区别在于:emulator模拟硬件和软件环境,而simulator只模拟软件环境。
3.android的模拟器是emulator,它不但模拟了软件环境还有硬件环境;iphone的模拟器是simulator,只模拟了软件环境,即代码需要编译为本地二进制在macOS上运行。区别在于:android的emulator运行慢(尤其是启动)但运行较真实(虽然有些GPU和硬件的加速器没法用);iphone的simulator提高开发速度,但没法用ARM汇编等方法作优化。

参考资料:
1.Simulator vs. Emulator (Simulation vs. Emulation) http://kerneltrap.org/node/59263
2.http://stackoverflow.com/questions/4544588/difference-between-iphone-simulator-and-android-emulator/4544605
3.http://leuksman.com/log/2010/06/15/mobile-dev-trade-offs-emulator-vs-simulator/

Advertisements