Skip to content
BENIBIX Learn

CPU Architecture

Development🖥️ Platforms & OSPlatforms

Also known as Instruction Set Architecture, ISA, Processor Architecture, Chip Architecture

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

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.

Example

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

Why it matters

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

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 code

console
$ uname -m
x86_64
This laptop has an x86-64 chip. An ARM Linux machine prints aarch64 here.
Your code is built once for each chip family. A build only runs on its own family.

Common mistake

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

Key takeaways

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

Learn it properly