什么是编译模拟器和基于指令集解释器的模拟器?

发布于 2024-12-16 22:52:46 字数 39 浏览 0 评论 0原文

什么是编译模拟器和基于指令集解释器的模拟器?它们之间有什么区别?

What are compiled simulators and Instruction Set Interpreter based Simulators? What is the difference between them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄暮涼年 2024-12-23 22:52:46

编译模拟器只需使用主机的编译器编译代码并在主机上本地运行。指令集解释器模拟在实际机器上运行的代码,并且该代码与真实代码完全相同——使用相同的编译器编译。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文