🖥️CPU Architecture
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
Example code
console
$ uname -m
x86_64Common mistake
Key takeaways
- 1The chip's orders. Each architecture has its own basic set.
- 2Must match. Machine code runs only on its own family.
- 3Two big families. x86-64 and ARM run most devices today.