Universal binary

Not to be confused with Universal Hex Format.

Logo used to indicate a Universal application

The universal binary format is a format for executable files that run natively on either PowerPC or Intel-manufactured IA-32 or Intel 64 or ARM64-based Macintosh computers. The format originated on NeXTStep as "Multi-Architecture Binaries", and the concept is more generally known as a fat binary, as seen on Power Macintosh.

With the release of Mac OS X Snow Leopard, and before that, since the move to 64-bit architectures in general, some software publishers such as Mozilla[1] have used the term "universal" to refer to a fat binary that includes builds for both i386 (32-bit Intel) and x86_64 systems. The same mechanism that is used to select between the PowerPC or Intel builds of an application is also used to select between the 32-bit or 64-bit builds of either PowerPC or Intel architectures.

Apple, however, continued to require native compatibility with both PowerPC and Intel in order to grant third-party software publishers permission to use Apple's trademarks related to universal binaries.[2] Apple does not specify whether or not such third-party software publishers must (or should) bundle separate builds for all architectures.

Universal binaries were introduced into Mac OS at the 2005 Apple Worldwide Developers Conference as a means to ease the transition from the existing PowerPC architecture to systems based on Intel processors, which began shipping in 2006. Universal binaries typically include both PowerPC and x86 versions of a compiled application. The operating system detects a universal binary by its header, and executes the appropriate section for the architecture in use. This allows the application to run natively on any supported architecture, with no negative performance impact beyond an increase in the storage space taken up by the larger binary.

Starting with Mac OS X Snow Leopard, only Intel-based Macs are supported, so software that specifically depends upon capabilities present only in Mac OS X 10.6 or newer will only run on Intel-based Macs and therefore does not require Intel/PPC fat binaries. Additionally, starting with OS X Lion, only 64-bit Intel Macs are supported, so software that specifically depends on new features in OS X 10.7 or newer will only run on 64-bit processors and therefore does not require 32-bit/64-bit fat binaries.[3][4] Fat binaries would only be necessary for software that is designed to have backward compatibility with older versions of Mac OS X running on older hardware.

The new Universal 2 binary format was introduced at the 2020 Worldwide Developers Conference.[5] Universal 2 allows applications to run on both Intel x86-64-based and ARM64-based Macintosh computers, to enable the transition to Apple silicon.

## Contents

* 1 Motivation
* 2 History
* 2.1 Universal applications
* 2.2 iOS
* 2.3 Universal 2
* 3 Tools
* 4 See also
* 5 References
* 6 External links

## Motivation

There are two general alternative solutions. The first is to simply provide two separate binaries, one compiled for the x86 architecture and one for the PowerPC architecture. However, this can be confusing to software users unfamiliar with the difference between the two, although the confusion can be remedied through improved documentation, or the use of hybrid CDs. The other alternative is to rely on emulation of one architecture by a system running the other architecture. This approach results in lower performance, and is generally regarded an interim solution to be used only until universal binaries or specifically compiled binaries are available as with Rosetta.

Universal binaries are larger than single-platform binaries, because multiple copies of the compiled code must be stored. However, because some non-executable resources are shared by the two architectures, the size of the resulting universal binary can be, and usually is, smaller than the combined sizes of two individual binaries. They also do not require extra RAM because only one of those two copies is loaded for execution.

## History

The concept of a universal binary originated with "Multi-Architecture Binaries" in NeXTSTEP, the main architectural foundation of Mac OS X. NeXTSTEP supports universal binaries so that one executable image can run on multiple architectures, including Motorola's m68k, Intel's x86, Sun Microsystems's SPARC, and Hewlett-Packard's PA-RISC. NeXTSTEP and macOS use Mach-O archive as the binary format underlying the universal binary.

Apple previously used a similar technique during the transition from 68k processors to PowerPC in the mid-1990s. These dual-platform executables are called fat binaries, referring to their larger file size.

Apple's Xcode 2.1 supports the creation of these files, a new feature in that release. A simple application developed with processor-independence in mind might require very few changes to compile as a universal binary, but a complex application designed to take advantage of architecture-specific features might require substantial modification. Applications originally built using other development tools might require additional modification. These reasons have been given for the delay between the introduction of Intel-based Macintosh computers and the availability of third-party applications in universal binary format. Apple's delivery of Intel-based computers several months ahead of their previously announced schedule is another factor in this gap.

Apple's Xcode 2.4 takes the concept of universal binaries even further, by allowing four-architecture binaries to be created (32- and 64-bit for both Intel and PowerPC), therefore allowing a single executable to take full advantage of the CPU capabilities of any Mac OS X machine.

### Universal applications

Many software developers have provided universal binary updates for their products since the 2005 WWDC. As of December 2008, Apple's website listed more than 7,500 Universal applications.[6]

On April 16, 2007, Adobe Systems announced the release of Adobe Creative Suite 3, the first version of the application suite in the Universal Binary format.[7]

From 2006 to 2010, many Mac OS X applications were ported to Universal Binary format, including QuarkXPress, Apple's own Final Cut Studio, Adobe Creative Suite, Microsoft Office 2008, and Shockwave Player with version 11 - after that time most were made Intel-only apps. Non-Universal 32-bit PowerPC programs will run on Intel Macs running Mac OS X 10.4, 10.5, and 10.6 (in most cases), but with non-optimal performance, since they must be translated on-the-fly by Rosetta; they will not run on Mac OS X 10.7 Lion and later as Rosetta is no longer part of the OS.

### iOS

Apple has used the same binary format as Universal Binaries for iOS applications by default on multiple occasions of architectural co-existence: around 2010 during the armv6-armv7-armv7s transition and around 2016 during the armv7-arm64 transition. The App Store automatically thins the binaries. No trade names were derived for this practice, as it is only a concern of the developer.[8]

### Universal 2

On June 22, 2020, Apple announced a two-year permanent transition from Intel x86-64-based processors to ARM64-based Apple silicon beginning with macOS Big Sur in late 2020.[9] To aid in this transition, a new Universal 2 binary was introduced to enable applications to be run on either x86-64-based processors or ARM64-based processors.[5]

## Tools

The main tool for handling (creating or splitting) universal binaries is the `lipo` command found in Xcode. The `file` command on macOS and several other Unix-like systems can identify Mach-O universal binaries and report architecture support.[10] Snow Leopard's System Profiler provides this information on the Applications tab.

## See also

* Apple–Intel architecture
* Mac transition to Intel processors
* Mac transition to Apple silicon
* Fat binary
* Xslimmer

## References

1. ↑ "Firefox 4 for Mac OS X: Under the Hood". November 10, 2010. https://joshaas.wordpress.com/2010/11/10/firefox-4-for-mac-os-x-under-the-hood/.
2. ↑ "Mac OS X Universal Logo: Guidelines for Mac OS X Universal Logo Licenses". Apple Inc.. June 2007. https://developer.apple.com/softwarelicensing/agreements/pdf/universal_gdlns.pdf.
3. ↑ "Mac OS X: 64-bit kernel frequently asked questions". Apple Inc.. October 4, 2012. http://support.apple.com/kb/ht4287.
4. ↑ "Does Mac OS X 10.7 "Lion" run on Macs with a 32-bit EFI? How does the performance of Mac OS X 10.7 "Lion" compare to Mac OS X 10.6 "Snow Leopard" in "real-world" tests? @ EveryMac.com". Kyle Media. https://everymac.com/mac-answers/os-x-lion-faq/os-x-lion-performance-compared-to-snow-leopard-32-bit-64-bit-efi.html.
5. ↑ 5.0 5.1 Axon, Samuel (2020-06-22). "This is Apple's roadmap for moving the first Macs away from Intel" (in en-us). https://arstechnica.com/gadgets/2020/06/this-is-apples-roadmap-for-moving-the-first-macs-away-from-intel/.
6. ↑ "Macintosh Products Guide: Universal Applications". Apple Computer. http://guide.apple.com/universal/.
7. ↑ "Adobe Ships Creative Suite 3". Adobe Systems. April 16, 2007. http://www.adobe.com/aboutadobe/pressroom/pressreleases/200704/041607CS3Shipping.html.
8. ↑ "lipo - iOS fat binaries and thinning out". https://stackoverflow.com/questions/40996682/ios-fat-binaries-and-thinning-out.
9. ↑ Amadeo, Ron (2020-06-22). "Apple announces macOS 11, "Big Sur," with an emphasis on design" (in en-us). https://arstechnica.com/gadgets/2020/06/apple-announces-macos-10-16-big-sur-with-entirely-new-interface/.
10. ↑ stany (September 6, 2005). "Mac OS X: Trimming fat from Mach-O fat files". theconsultant.net. http://www.theconsultant.net/2005/09/macosx-operating-on-fat-files/.

## External links

* Apple Developer Transition Resource Center
* Apple Universal Binary Programming Guidelines
* Apple Universal Binary Introduction

* v
* t
* e

macOS

* History
* Architecture
* Components
* Server
* Software

Versions|

* Server 1.0 Hera
* Public Beta Kodiak
* 10.0 Cheetah
* 10.1 Puma
* 10.2 Jaguar
* 10.3 Panther
* 10.4 Tiger
* 10.5 Leopard
* 10.6 Snow Leopard
* 10.7 Lion
* 10.8 Mountain Lion
* 10.9 Mavericks
* 10.10 Yosemite
* 10.11 El Capitan
* 10.12 Sierra
* 10.13 High Sierra
* 10.14 Mojave
* 10.15 Catalina

Applications|

* App Store
* Automator
* Calculator
* Calendar
* Chess
* Contacts
* Dictionary
* DVD Player
* FaceTime
* Finder
* Game Center
* Grapher
* Home
* iTunes (history)
* Launchpad
* Mail
* Messages
* News
* Music
* Notes
* Notification Center
* Podcasts
* Photo Booth
* Photos
* Preview
* QuickTime
* Reminders
* Safari (version history)
* Stickies
* TextEdit
* Time Machine

Discontinued|

* Dashboard
* Front Row
* iChat
* iPhoto
* iSync
* Sherlock

Utilities|

* Activity Monitor
* AirPort Utility
* AppleScript Editor
* Archive Utility
* Audio MIDI Setup
* Bluetooth File Exchange
* Boot Camp
* ColorSync
* Configurator
* Console
* Crash Reporter
* DigitalColor Meter
* Directory Utility
* DiskImageMounter
* Disk Utility
* Font Book
* Grab
* Help Viewer
* Image Capture
* Installer
* Keychain Access
* Migration Assistant
* Network Utility
* ODBC Administrator
* Screen Sharing
* System Preferences
* System Information
* Terminal
* Universal Access
* VoiceOver

Discontinued|

* Software Update
* Remote Install Mac OS X

Technology and user interface|

* AirDrop
* Apple File System
* Apple menu
* Apple Push Notification service
* AppleScript
* Aqua
* Audio Units
* AVFoundation
* Bonjour
* Bundle
* CloudKit
* Cocoa
* ColorSync
* Command key
* Core Animation
* Core Audio
* Core Data
* Core Foundation
* Core Image
* Core OpenGL
* Core Text
* Core Video
* CUPS
* Cover Flow
* Darwin
* Dock
* FileVault
* Fonts
* Gatekeeper
* Grand Central Dispatch
* icns
* iCloud
* I/O Kit
* Kernel panic
* Keychain
* launchd
* Mach-O
* Menu extra
* Metal
* Mission Control
* OpenCL
* Option key
* Preference Pane
* Property list
* Quartz
* Quick Look
* Smart Folders
* Speakable items
* Spotlight
* Stacks
* System Integrity Protection
* Uniform Type Identifier
* Universal binary
* WebKit
* XNU
* XQuartz

Deprecated|

* HFS+

Discontinued|

* BootX
* Brushed metal
* Carbon
* Classic Environment
* Inkwell
* QTKit
* Rosetta
* Spaces
* Xgrid

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Universal binary. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Universal_binary&oldid=3363944"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template