什么是编译模拟器和基于指令集解释器的模拟器?
什么是编译模拟器和基于指令集解释器的模拟器?它们之间有什么区别?
What are compiled simulators and Instruction Set Interpreter based Simulators? What is the difference between them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编译模拟器只需使用主机的编译器编译代码并在主机上本地运行。指令集解释器模拟在实际机器上运行的代码,并且该代码与真实代码完全相同——使用相同的编译器编译。
iOS 模拟器是编译模拟器——它们只是使用 x86 编译器而不是 ARM 编译器来编译代码。因此它不会模拟一切,例如 NEON 指令。
Compiled simulators simply compile the code with the host machine's compilers and run it natively on the host. Instruction set interpreters simulate the code running on the actual machine, and the code is exactly the same as the real code -- compiled with the same compilers.
The iOS simulators are compiled simulators -- they simply compile the code with an x86 compiler instead of an ARM compiler. Thus it doesn't simulate everything, e.g., NEON instructions.