【问题标题】:Confusion regarding emulator and simulator?关于模拟器和模拟器的困惑?
【发布时间】:2014-10-15 13:12:42
【问题描述】:

从几天开始,我的脑子里就一直在思考模拟器和模拟器的区别。所以我开始弄清楚它们是什么。但是我得到了一些非常对比的答案。在某个地方我看到了:

The Simulator tries to duplicate the behavior of the device. The Emulator tries to duplicate the inner workings of the device.

在我看到的另一个资源中:

The goal of an emulation is to able to substitute for the object it is emulating. A simulation’s focus is more on the modelling of the internal state of the target

我真的有点糊涂???

【问题讨论】:

    标签: emulation simulator


    【解决方案1】:

    模拟器

    重现系统的精确行为,通常一直到硬件级别。因此,例如,Android 模拟器假装是一个实际的 ARM 设备,具有虚拟化硬件和虚拟 ARM CPU。这提供了最佳的真实感,并且可以运行本机 ARM 代码,但通常会降低速度。模拟环境应该与真实事物非常接近(以慢速为模),以至于在很多情况下它可以替代真实事物。

    模拟器的另一个例子是大多数虚拟机软件,它旨在提供一个完整的模拟计算机系统来运行操作系统。

    模拟器

    通过在更高级别重新创建目标系统的细节来模拟目标系统的行为,例如通过为新 CPU 重新编译操作系统或程序并将其直接连接到真实硬件(而不是使用仿真硬件)。这更快,但不太准确,因为它不会复制实际硬件的行为。例如,iOS 模拟器运行移植到 x86 的 iOS 子集。它不能运行原生 ARM 代码,也不能复制真实 iOS 设备独有的硬件怪癖。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-28
      • 2011-03-06
      • 2013-11-14
      • 1970-01-01
      • 2011-01-05
      相关资源
      最近更新 更多