軟體本機執行意味著什麼?

當人們提到執行本機軟體、模擬和軟體相容性時,他們到底指的是什麼?請繼續閱讀本機軟體的概念。...

軟體本機執行意味著什麼?

當人們提到執行本機軟體、模擬和軟體相容性時,他們到底指的是什麼?請繼續閱讀本機軟體的概念。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Thro**y很好奇以本機方式執行軟體意味著什麼。他寫道:

I’ve been wondering what it means for software to run natively. What exactly is such software and how is it different from software that does not run natively? How can I tell if a given piece of software will run natively on my computer? Is there likely to be software already on my computer that runs natively?

請繼續閱讀,以獲得一個極好的類比,準確地解釋在給定系統上原生的含義。

答案

SuperUser contributor Deltik提供了一個奇妙的類比,強調了軟體本機的意義,以及在給定系統上可能找到的其他軟體型別:

A software is native to a platform if it was designed to run on that platform.

A platform usually refers to an operating system, but it can also be applied to devices such as the Nintendo Game Boy.

Using the Game Boy as an example, it gets its software from cartridges. These cartridges contain code that runs natively on the Game Boy.

Emulators are a layer that allows software designed for one platform to be run on another. For example, there are emulators that can execute images of Game Boy cartridges and allow you to play Game Boy games on your computer or even your mobile phone.

compatibility layer is kind of like an emulator. When 64-bit computers and operating systems became mainstream, they needed to be compatible with the existing 32-bit technologies. Since 64-bit and 32-bit architectures are very different, a compatibility layer is often needed to run 32-bit software on 64-bit machines. For 64-bit editi*** of Microsoft Windows, Microsoft needed to write a compatibility layer so that 32-bit programs would still work on the new 64-bit system. This is why some programs are often installed to a folder called Program Files (x86), where x86 means “32-bit”.

Compatibility layers tend to be more intimate with the native system than emulators are. VirtualBoxemulates hardware for operating systems*, and the systems that it emulates doesn’t have very much direct interaction with the host system. WoW64 is a compatibility layer in that it lets 32-bit programs run on 64-bit Windows in a more integrated way. WoW64 helps make programs compatible rather thanemulating them in an isolated environment.

translation library is a component of compatibility layers. Whenever binary code is running non-natively, a translation library helps redirect foreign, non-native calls to native calls that the system can understand. Assembly programs written for the original TI-83 might not be compatible with the newer TI-83/84 Plus calculators because some calls that made sense in the TI-83’s architecture may no longer be valid in the TI-83/84+. A translation library (probably included in shells like MirageOS) ensures that calls for the TI-83 go to the new, updated places in the TI-83/84+ calculators.

Platform-independent code is written in a language that is interpreted by something that usually runs natively. For example, PHP is a programming language that is interpreted and executed by the installed PHP binary, which has already been compiled natively for Windows, Mac, and Unix-based operating systems. The PHP code that web scripters write are independent of the platform, allowing the code to work on multiple operating systems as long as PHP is installed for those operating systems.


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

 

 

  • 發表於 2021-04-11 18:47
  • 閱讀 ( 48 )
  • 分類:網際網路

你可能感興趣的文章

你現在可以在你的mac上執行AdobePhotoshop

...分層編輯,比在採用英特爾處理器的老式Mac電腦上使用該軟體要快得多。一些Photoshop功能仍在最佳化,以在Apple-silicon-Macs上本機執行,包括編輯雲文件和預設同步。 ...

  • 發佈於 2021-03-11 03:29
  • 閲讀 ( 49 )

為linux愛好者提供8個適合每個預算的禮品創意

...擇這個作業系統的部分原因是因為他們非常喜歡它。開源軟體允許他們調整一些東西來實現這一點。因此,他們在生活的其他方面可能也是這樣,這意味著他們可能很難為自己買禮物。 ...

  • 發佈於 2021-03-12 03:29
  • 閲讀 ( 51 )

electron開放框架以及為什麼它對應用程式開發非常棒

... Electron是一個易於跨平臺應用程式開發的軟體框架。這擴充套件到大多數桌面作業系統,如Windows、Mac和Linux。它最初是為Atom設計的,Atom是一個功能齊全的跨平臺文字編輯器(因此得名Electron)。 ...

  • 發佈於 2021-03-12 14:53
  • 閲讀 ( 50 )

Windows10即將啟用:以下是它對您的意義

... 生產力應用軟體 ...

  • 發佈於 2021-03-16 13:51
  • 閲讀 ( 50 )

gnome解釋:看看linux最流行的桌面之一

...在90年代末,當時Miguel de Icaza和Federico Mena建立了一個自由軟體桌面環境和配套應用程式。這個自由軟體專案最初是作為K桌面環境的替代品,K桌面環境依賴於(當時)QT小部件工具箱。GNOME依賴GTK+工具包。 ...

  • 發佈於 2021-03-17 03:05
  • 閲讀 ( 44 )

為什麼windows提供linux核心會改變一切

...正在改變。他們曾經是一個封閉的、單一的組織,對開源軟體懷有公開的敵意,現在似乎正在接受開源軟體。 ...

  • 發佈於 2021-03-20 05:49
  • 閲讀 ( 50 )

如何徹底擦除硬碟

... 刪除病毒或勒索軟體 覆蓋敏感個人資料 開始使用以前的所有者尚未擦除的二手磁碟驅動器 ...

  • 發佈於 2021-03-22 16:06
  • 閲讀 ( 51 )

為什麼64位作業系統不能執行16位應用程式?

...本,它不僅允許訪問更多記憶體,而且還包括一組功能,軟體可以向系統標記16位還是32位程式碼。這是由所謂的虛擬86模式實現的,它本質上是一個內建的虛擬8086系統。 ...

  • 發佈於 2021-03-26 10:39
  • 閲讀 ( 46 )

開發者成功地在蘋果新的m1晶片上啟動了Windows10

... 在接受Ars Technica採訪時,蘋果軟體工程高階副總裁克雷格·費德里吉(Craig Federighi)表示: ...

  • 發佈於 2021-03-29 06:58
  • 閲讀 ( 49 )

蘋果的m1晶片是什麼?

...功耗。它還允許蘋果做它最擅長的事情:同時設計硬體和軟體,讓事情“正常運轉” 最大的實際好處可能是耗電。新的M1晶片耗電量大約是以前英特爾晶片的一半,這意味著電池壽命增加了一倍。13英寸的MacBookPro和M1的報價處理...

  • 發佈於 2021-04-01 09:04
  • 閲讀 ( 77 )
brislab
brislab

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦