请输入您要查询的百科知识:

 

词条 Compatibility layer
释义

  1. Software

  2. Hardware

  3. See also

  4. References

  5. External links

In software engineering, a compatibility layer is an interface that allows binaries for a legacy or foreign system to run on a host system. This translates system calls for the foreign system into native system calls for the host system. With some libraries for the foreign system, this will often be sufficient to run foreign binaries on the host system. A hardware compatibility layer consists of tools that allow hardware emulation.

Software

Examples include:

  • Wine, which runs some Microsoft Windows binaries on Unix-like systems using a program loader and the Windows API implemented in DLLs
  • Windows's application compatibility layers (Application Compatibility Toolkit) to attempt to run poorly written applications or those written for earlier versions of the platform.[1]
  • Lina, which runs some Linux binaries on Windows, Mac OS X and Unix-like systems with native look and feel.
  • KernelEX, which runs some Windows 2000/XP programs on Windows 98/Me.
  • Executor, which runs 68k-based "classic" Mac OS programs in Windows, Mac OS X and Linux.
  • Columbia Cycada, which runs Apple iOS applications on Android systems
  • Hybris, library that translates Bionic into glibc calls.
  • Darling, a translation layer that attempts to run Mac OS X and Darwin binaries on Linux.
  • Windows Subsystem for Linux, which runs Linux binaries on Windows.

Compatibility layer in kernel:

  • FreeBSD's Linux compatibility layer, which enables binaries built specifically for Linux to run on FreeBSD[2] the same way as the native FreeBSD API layer.[3] FreeBSD also has some Unix-like system emulations, including NDIS, NetBSD, PECoff, SVR4, and different CPU versions of FreeBSD.[4]
  • NetBSD has several Unix-like system emulations.[5]
  • Windows Subsystem for Linux provides a Linux-compatible kernel interface developed by Microsoft and containing no Linux code, with Ubuntu user-mode binaries running on top of it.[6]
  • [https://web.archive.org/web/20081015065906/http://chiharu.haun.org/peace/ The PEACE Project] (aka COMPAT_PECOFF) has Win32 compatible layer for NetBSD. The project is now inactive.

    A compatibility layer avoids both the complexity and the speed penalty of full hardware emulation. Some programs may even run faster than the original, e.g. some Linux applications running on FreeBSD's Linux compatibility layer may perform better than the same applications on Red Hat Linux. Benchmarks are occasionally run on Wine to compare it to Windows NT-based operating systems.[7]

    Even on similar systems, the details of implementing a compatibility layer can be quite intricate and troublesome; a good example is the IRIX binary compatibility layer in the MIPS architecture version of NetBSD.[8]

    A compatibility layer requires the host system's CPU to be (upwardly) compatible to that of the foreign system. For example, a Microsoft Windows compatibility layer is not possible on PowerPC hardware because Windows requires an x86 CPU. In this case full emulation is needed.

    Hardware

    Hardware compatibility layers involve tools that allow hardware emulation. Some hardware compatibility layers involve breakout boxes because breakout boxes can provide compatibility for certain computer buses that are otherwise incompatible with the machine.

    See also

    • Hypervisor
    • Paravirtualization
    • Emulator
    • Cross-platform virtualization
    • Computing platform
    • Shim (computing)
    • Driver wrapper
    • Glue code

    References

    1. ^{{cite web| url = http://www.microsoft.com/windowsxp/using/helpandsupport/learnmore/russel_02february18.mspx| title = Application Compatibility in Windows XP| date=2002-02-18| author = Charlie Russel, Microsoft MVP for Windows Server and Tablet PC}}
    2. ^{{cite web| url = http://www.freebsd.org/doc/en/articles/linux-emulation/index.html| title = Linux emulation in FreeBSD}}
    3. ^{{cite web|url=http://www.freebsd.org/doc/en/articles/linux-emulation/freebsd-emulation.html|title=Emulation|publisher=freebsd.org|accessdate=2014-03-16}}
    4. ^{{cite web|url=http://www.freebsd.org/doc/en/articles/linux-emulation/inside.html|title=A look inside...|publisher=freebsd.org|accessdate=2014-03-16}}
    5. ^{{cite web|url=http://www.netbsd.org/docs/compat.html|title=NetBSD Binary Emulation|publisher=netbsd.org|accessdate=2014-03-16}}
    6. ^[https://msdn.microsoft.com/en-us/commandline/wsl/about BASH Running in Ubuntu on Windows - MSDN]
    7. ^BenchMark-0.9.5 - The Official Wine Wiki
    8. ^{{cite web| url = http://www.onlamp.com/pub/a/bsd/2002/08/08/irix.html| title = IRIX Binary Compatibility, Part 1 | date = August 8, 2002| author = Emmanuel Dreyfus | publisher = onlamp.com | accessdate = 2014-03-16| }}

    External links

    • Windows XP Application Compatibility Technologies (Dave Morehouse and Todd Phillips, Microsoft Corporation, 1 June 2001)
    {{DEFAULTSORT:Compatibility Layer}}

    1 : Compatibility layers

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 0:12:56