# CPU Architecture

> The set of basic orders a chip understands. It decides which machine code can run on it.

**Field:** Software Development  
**Category:** Platforms & OS  
**Also known as:** Instruction Set Architecture, ISA, Processor Architecture, Chip Architecture

## Think of it like

Think of it like the language a chip speaks. A note in French is no use to a chip that reads only Spanish.

## Definition

A CPU architecture is the set of basic orders a chip understands. Each order is tiny, like add two numbers or fetch a value. A compiler turns your code into those orders. Chips with the same architecture can run the same machine code. Chips with different ones cannot. The two big families today are x86-64 and ARM.

## Example

On a Linux laptop, Lucy types uname -m. It prints x86_64, so she downloads the x86-64 build of a tool.

## Example code

```console
$ uname -m
x86_64
```

This laptop has an x86-64 chip. An ARM Linux machine prints aarch64 here.

## Why it matters

Machine code made for one chip family will not run on another. Each download and each build has to match.

## Common mistake

Thinking a brand name tells you the chip family. Two laptops from one maker can use different ones.

## Three principles

- **The chip's orders.** Each architecture has its own basic set.
- **Must match.** Machine code runs only on its own family.
- **Two big families.** x86-64 and ARM run most devices today.

## Related terms

- [x86-64](https://learn.benibix.com/term/development/x86-64)
- [ARM Architecture](https://learn.benibix.com/term/development/arm-architecture)
- [32-bit and 64-bit](https://learn.benibix.com/term/development/32-bit-and-64-bit)
- [Machine Code](https://learn.benibix.com/term/development/machine-code)
- [Compiler](https://learn.benibix.com/term/development/compiler)
- [Central Processing Unit (CPU)](https://learn.benibix.com/term/infrastructure/central-processing-unit)

## Taught in

- [CPU Architectures, x86 and ARM](https://learn.benibix.com/learn/development-platforms/cpu-architectures-x86-and-arm): OS and Files, 6/10

![Two halves. On the left, Your code splits into an x86-64 build for Intel and AMD chips and an ARM build for phones and Apple chips, and each build runs only on its own kind of chip. On the right, two bars show the memory a program can reach: a tiny 32-bit bar marked 4 GB at most, and a long 64-bit bar marked about 17 billion GB.](https://learn.benibix.com/diagrams/dev-cpu-arch.svg)

---

Source: https://learn.benibix.com/term/development/cpu-architecture
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
