Native (computing): Difference between revisions

Content deleted Content added
Move link to first use
the cartridge is interesting yet not relevant to this discussion; edit for readability
Line 2:
{{Short description|Software designed to run on a particular operating system}}
{{Original research|date=February 2023}}
'''Native''' software is [[software build|built]] to be [[Execution (computing)|executed]] directly by [[Processor (computing)|processors]] that implement a compatible [[instruction set]].<ref>{{Cite web|url=https://searchapparchitecture.techtarget.com/definition/native-code|title=What is native code? - Definition from WhatIs.com|website=SearchAppArchitecture|language=en|access-date=2019-11-22}}</ref> InA contrast,program [[cross-platformthat software]]runs can runnatively on multipleone processorsplatform althoughmay possiblybe requiringrunnable iton toanother beplatform re-builtvia foran different target systems[[emulator]].
 
[[Cross-platform software]] can run on multiple processors although possibly requiring it to be re-built for different target systems.
For example, a [[Game Boy]] receives its software through a [[ROM cartridge|cartridge]], which contains code that runs natively on the Game Boy.<ref>{{Cite web|url=http://www.computinghistory.org.uk/det/4033/Nintendo-Game-Boy/|title=Nintendo Game Boy - Game Console - Computing History|website=www.computinghistory.org.uk|access-date=2019-11-22}}</ref> The only way to run this code on another processor is to use an [[emulator]], which simulates an actual Game Boy.<ref>{{Cite web|url=https://www.howtogeek.com/347530/the-importance-of-emulation-for-games-preservation/|title=Why Are Video Game Emulators So Important? (Because They Preserve Our History)|last=Pot|first=Justin|website=How-To Geek|language=en-US|access-date=2019-11-22}}</ref> This usually comes at the cost of speed.<ref>{{Cite web|url=https://www.makeuseof.com/tag/how-does-emulation-work/|title=How Does Emulation Work and Why Is It So S
 
For example, games for a [[Game Boy]] receives(typically itsdistributed software throughas a [[ROM cartridge|cartridge]]), which contains code thatgenerally runs natively on thea Game Boy which is relatively incompatible with other computer platforms.<ref>{{Cite web|url=http://www.computinghistory.org.uk/det/4033/Nintendo-Game-Boy/|title=Nintendo Game Boy - Game Console - Computing History|website=www.computinghistory.org.uk|access-date=2019-11-22}}</ref> The only way to run thissuch codea game on another processor is tovia usesoftware anthat [[emulator]],emulates which simulates an actualthe Game Boy hardware.<ref>{{Cite web|url=https://www.howtogeek.com/347530/the-importance-of-emulation-for-games-preservation/|title=Why Are Video Game Emulators So Important? (Because They Preserve Our History)|last=Pot|first=Justin|website=How-To Geek|language=en-US|access-date=2019-11-22}}</ref> ThisIn usuallygeneral, comesemulation atincurs thesignificant cost ofruntime speed degradation.<ref>{{Cite web|url=https://www.makeuseof.com/tag/how-does-emulation-work/|title=How Does Emulation Work and Why Is It So S
|website=MakeUseOf|language=en-US|access-date=2018-11-22}}</ref>