Search topics and sections

A computing platform is the environment a program runs in. It includes the hardware, the operating system and, often, extra software such as a runtime that the program needs while it runs.[1][2]

Programs are usually built for one platform, so a program made for one often will not run on another without changes. Engineers have built ways around this problem, such as virtual machines that let the same program run on many platforms.

In business, "platform" also means a product that other companies build on, such as an operating system or an app store.[3]

Parts of a platform

A platform has several parts. Programs run on the operating system, directly on the hardware, or on both.[1]

  • Hardware. This is the processor, memory and devices. The processor's instruction set architecture (ISA) decides which kind of machine code it can run.[4]
  • Operating system. It gives programs a set of basic services through a defined interface.[5]
  • Runtime and libraries. This is software between the program and the operating system. For example, the Java virtual machine is the part of the Java platform that makes Java programs independent of the hardware and operating system.[2] See runtime system.

Some programs run with no operating system at all. This is called running on bare metal.

Compiler tools mark the bare-metal case with the system name "none".[6]

Layers of a computing platformApplicationRuntime and librariesOperating systemHardwareprocessormemorydevicesthe platformAPI (source level)ABI (binary level)ISA (instructions the processor runs)
A computing platform drawn as stacked layers. Hardware, the operating system, and the runtime and libraries make up the platform an application runs on, and each boundary is named by an interface: the API at source level, the ABI at binary level, and the ISA the processor runs.

Each boundary between these parts is an interface.[5][7]

Why programs depend on a platform

Compiled code targets one platform

A compiler turns source code into machine code for one target platform. The Clang compiler builds for the computer it runs on (the host) unless it is given another target.[6] Building for a platform other than the host is called cross compiling (see cross-compiler).

The chip alone does not decide the target. Go's documentation notes that an x86-64 computer running a 32-bit-only operating system must be targeted as 32-bit x86 (386), not as 64-bit x86 (amd64).[4]

Source and binary compatibility

Software can be portable at two levels.

Level What stays the same What must be done to use another platform
Source level The source code Compile it again for the other platform
Binary level The compiled program Nothing, since it runs unchanged

The POSIX standard aims at source portability. A program translated for one conforming system (a system that meets the standard's rules) "may also be translated for execution on another".[5] POSIX does not promise that compiled code will run on another conforming system, even if the actual hardware is the same.[5]

Binary compatibility needs every part to agree on an ABI. The System V ABI pairs a generic document with a supplement for each processor family. Together they give the information needed to build, link and run compiled programs, so that compilers, linkers and the way compiled code lays out its data stay compatible.[7]

For example, the supplement for Intel's IA-64 processors uses a model where the C type int is 32 bits while long and pointers are 64 bits. It can be used for either byte order, meaning the most significant byte of a number can be stored first or last.[7]

API ABI
Works on Source code Compiled machine code
Fixes Names and behavior of the functions a program calls Low-level details such as data sizes, byte order and object file layout
Portability it gives Recompile on another system that follows it Compiled parts from different tools work together
Example POSIX System V ABI

Naming a platform

Build tools name a platform with a short string. Clang uses a target triple of the form <arch><sub>-<vendor>-<sys>-<env>.[6]

  • arch and sub. The processor architecture, such as x86_64 or arm, and an optional variant, such as v7a on ARM.
  • vendor. A maker such as pc, apple, nvidia or ibm. It can usually be left out.
  • sys. Generally the operating system, such as linux or darwin, or none for bare metal.
  • env. The environment, such as gnu, eabi or android. It picks defaults, including which library calls to use.
Parts of the target triple x86_64-pc-linux-gnu<arch><sub>-<vendor>-<sys>-<env>x86_64pclinuxgnu---arch: processor architecturevendorsys: operating systemenv: environment
The target triple x86_64-pc-linux-gnu has four hyphen-separated parts. They follow the general form ⟨arch⟩⟨sub⟩\langle arch\rangle\langle sub\rangle-⟨vendor⟩\langle vendor\rangle-⟨sys⟩\langle sys\rangle-⟨env⟩\langle env\rangle, giving the processor architecture, vendor, operating system and environment.

The Go language names a platform with two settings, the operating system (GOOS) and the architecture (GOARCH).[4] Valid pairs include linux/amd64, darwin/arm64, windows/arm64 and js/wasm.[4]

# Build a program for Windows on 64-bit ARM
GOOS=windows GOARCH=arm64 go build

Running on more than one platform

Software that runs on several platforms is called cross-platform software. Four common approaches are compared below.

Approach What is shipped Example
Build for each platform One compiled program per platform, sometimes bundled Go cross compiling, Apple Universal apps
Translate machine code A program for the old platform, translated on the new one Apple's Rosetta
Target a virtual platform Code for an imaginary machine Java bytecode, WebAssembly
Package the environment A whole operating system or app environment Virtual machines, containers

Build for each platform

The simplest way is to compile the same source once for each target. Go's tools always treat the target as a setting, so in effect they are "always cross-compiling".[4]

Some files bundle several builds together. Apple's Universal apps are made for both Macs with Apple silicon and Macs with Intel processors.[8] See universal binary.

Translate machine code

Binary translation converts machine code for one ISA into code for another. Apple's Rosetta translates Intel-based Mac apps so they run on Apple silicon, and it works automatically in the background.[8]

Apple tells users to replace translated apps with Universal or Apple silicon versions for the best performance and future compatibility.[8]

Apple also says that starting with macOS 28, Rosetta will work only for certain older, unmaintained games that rely on Intel-based frameworks.[8] A framework here is shared code and tools that apps are built on.

Target a virtual platform

Another way is to compile for an imaginary machine and then build that machine on every real platform. Java compiles to class files that hold bytecode in a "hardware- and operating system-independent binary format".[2] This is the idea behind Java's goal of write once, run anywhere.[9]

The Java virtual machine does not assume any particular hardware or operating system.[2]

It can run bytecode in several ways. It can interpret the bytecode, compile it to the real processor's instructions, or even be built directly in silicon.[2]

The Java virtual machine is not limited to Java. Any language that can be expressed as valid class files can run on it.[2]

Two routes to portability across computing platforms Compile for each platform Compile once to a virtual machine Source code compiler compiler compiler Machinecode Machinecode Machinecode Linuxx86-64 macOSARM64 Windowsx86-64 Source code compiler Bytecode (class file) Java virtualmachine Java virtualmachine Java virtualmachine Linuxx86-64 macOSARM64 Windowsx86-64
Left: a compiler turns the source code into separate machine code for each platform. Right: the source code is compiled once to bytecode, and a Java virtual machine on each platform runs that same bytecode.

WebAssembly is a newer "virtual instruction set architecture". Its design goals include being hardware-independent and platform-independent.[10]

WebAssembly can run in browsers, as a stand-alone virtual machine, or in other settings.[10]

Its core specification does not say how programs talk to their surroundings. Separate documents define an API for each setting, such as the Web.[10]

Virtual machines and containers

These approaches move a whole software environment instead of a single program. They differ in how much of the platform they copy.

  • Virtual machine. In full virtualization, whole operating systems run on simulated hardware. A hypervisor manages these guest systems and controls the flow of instructions between them and the real hardware.[11] This lets different operating systems, such as Linux and Windows, share one machine.[12]
  • Container. Several apps share one host operating system kernel but are kept apart from each other.[12] Containers are made from container images, which are packages of the files and settings needed to run a container. Images are designed to move between machines without changes, but they depend on the operating system family, so a Linux host can only run containers built for Linux.[12] See OS-level virtualization.
Virtual machines compared with containers Virtual machines Containers App App Guest OS Linux Guest OS Windows Hypervisor Hardware Container Container Container App App App Host OS (shared kernel) Hardware Containers must match the host OS family
Each virtual machine runs its own full guest OS, with its apps, on top of a hypervisor. Containers share the host OS kernel and hold only the app and what it needs, so each container must match the host OS family.

Kinds of platforms

The word "platform" is used for many parts of a computing system.

  • Hardware platforms. These are families of compatible machines, such as the IBM System/360 and the IBM PC and its compatibles.[13][14]
  • Operating system platforms. Windows, Linux, iOS and Android all serve as platforms that other firms build on.[3]
  • Runtime platforms. Oracle describes a Java platform as a particular environment in which Java applications run, made of a Java virtual machine and an API.[15] The Java platform family includes Java SE and Java ME, an edition with a small virtual machine for small devices such as mobile phones.[15]
  • Web platforms. Web browsers run web pages and can host WebAssembly programs.[10]
  • Cloud platforms. Providers rent out computing over a network, as described below.[16]

Related topics on specialized platforms include Arduino, Roblox, Hugging Face Hub and IBM Quantum Platform.

Cloud platforms

Cloud computing gives network access, whenever needed, to a shared pool of computing resources.[16] The U.S. National Institute of Standards and Technology (NIST) defines three service models (see cloud computing service models). They differ in how much of the platform the customer controls.[16]

Model Customer controls Provider manages
Infrastructure as a service (IaaS) Operating systems, storage, apps running on the service, and possibly some network parts such as host firewalls The cloud infrastructure beneath these layers
Platform as a service (PaaS) Apps running on the service, and possibly settings of the hosting environment (the software, libraries and tools provided for running an app) Network, servers, operating systems and storage
Software as a service (SaaS) At most, limited user settings in the app Everything else, including the app

Customers use the two higher models in different ways.[16]

  • PaaS. Customers build apps with programming languages, libraries, services and tools that the provider supports.
  • SaaS. Customers use the provider's apps through a simple client program such as a web browser, or through a program interface.
Control in the three NIST cloud service models IaaS PaaS SaaS Application Hosting environment Operating system Storage Servers and network languages, libraries, tools Customer may set host firewalls Customer sets configuration User settings only Customer controls Provider manages Shared or limited
In the three NIST cloud service models, the provider manages more of the layers as you move from IaaS to PaaS to SaaS, and the customer controls less. Split cells mark layers where control is shared or limited.

Platforms as businesses

In business research, a platform is a foundation that others build on. Management researchers Annabelle Gawer and Michael Cusumano separate two kinds.[3]

  • Internal platforms. A set of resources in a common structure that one company uses to develop a stream of related products.
  • External, or industry, platforms. Products, services or technologies that outside firms use to build their own products that work with the platform. These outside firms are called complementors, and together they form a business ecosystem, a network of firms building related products and services around the platform.

Industry platforms differ in how open they are. Openness can vary in three ways.[3]

  • Access to information about the platform's interfaces.
  • The rules for using the platform.
  • Cost, such as license fees.

Gawer and Cusumano list Windows and Linux, Intel and ARM processors, and Apple's iPhone with iOS and the App Store as examples.[3]

Network effects

Platforms often show network effects, where the platform becomes more valuable as more people use it.[3] Gawer and Cusumano describe two kinds.[3]

  • Direct, or same-side, effects. Users gain from other users and from the complements built for them.
  • Indirect, or cross-side, effects. One group is drawn by another, as advertisers are drawn to a search engine by its many users.

Technical compatibility makes these effects stronger. Windows apps or iPhone apps work only on compatible devices, so using several platforms at once (multi-homing) is hard or costly.[3]

As the number of complements grows, they act as a barrier that keeps rivals out.[3]

These effects have limits. One study of mobile platforms cited by Gawer and Cusumano found that too many complementors can discourage further firms from joining.[3] The authors also note open questions about whether the benefits of platform innovation outweigh the harm of reduced competition.[3]

Multi-sided markets

Economists use "platform" for markets with two or more sides, where different customer groups need each other and the platform brings them together. See two-sided market.[3] Gawer and Cusumano argue that not every such market is an industry platform. A dating site links two groups but need not invite outside firms to build complements.[3]

History

Compatible families

Before the IBM System/360, software was usually custom-written for each new machine. Buyers of a new system had to start again from scratch.[13]

IBM launched the System/360 on April 7, 1964, as one strictly compatible family that replaced all five of its earlier product lines.[13] Six processor models covered a 50-to-1 range in performance, and software written for one could run on any other in the line.[13]

IBM describes the System/360 as the start of a time when computers came to be seen as platforms.[13]

IBM also credits the system with the first platform business model.[13]

The personal computer

IBM introduced its Personal Computer in August 1981, built from ready-made parts.[14] It used the Intel 8088 processor and an operating system from Microsoft that later became known as MS-DOS.[14]

IBM chose an open architecture and published a technical reference to help other firms make software and add-ons.[14]

Within a year, more than 750 software packages were available.[14]

A few companies used IBM's published specifications to reverse-engineer the boot code, the code that starts the computer and loads its operating system. Reverse-engineering means studying how the code works and recreating it, and these firms used it to sell "IBM compatible" computers.[14]

Industry leadership later shifted toward Intel and Microsoft, which supplied the processor and the operating system.[3]

Portable runtimes

The Java platform was first developed for software on networked consumer devices. It had to support many host architectures, so its compiled code had to "operate on any client", meaning any device running the software.[2]

The first Java virtual machine prototype, built at Sun Microsystems, ran on a handheld device like a personal digital assistant.[2] A personal digital assistant is a small handheld computer for storing personal information and running simple programs.

Cloud platforms

NIST published its definition of cloud computing in September 2011. It set out the three service models, IaaS, PaaS and SaaS, that are still used to describe cloud platforms.[16] See NIST cloud computing definition.

References

  1. What is a Compute Platform?, Hewlett Packard Enterprise.
  2. The Java Virtual Machine Specification, Java SE 21 Edition, Chapter 1: Introduction, Oracle, 2023.
  3. Industry Platforms and Ecosystem Innovation, Journal of Product Innovation Management, 2014.
  4. Installing Go from source, The Go Project.
  5. POSIX.1-2024 Base Specifications, Issue 8: Preface, IEEE and The Open Group, 2024.
  6. Cross-compilation using Clang, LLVM Project.
  7. System V Application Binary Interface: Intel IA-64 Processor Supplement, Intel and others.
  8. Using Intel-based apps on a Mac with Apple silicon, Apple, 2026.
  9. Overview of Java, Oracle.
  10. WebAssembly Core Specification: Introduction, W3C WebAssembly Working Group.
  11. SP 800-125: Guide to Security for Full Virtualization Technologies, NIST.
  12. SP 800-190: Application Container Security Guide, NIST.
  13. The IBM System/360, IBM.
  14. The IBM PC, IBM.
  15. Differences between Java EE and Java SE, Oracle, 2012.
  16. SP 800-145: The NIST Definition of Cloud Computing, NIST, 2011.

Figure