CPU Architectures, x86 and ARM
Level 3 · Chips and platforms
Why a program built for an Intel chip will not run on an ARM one. What x86-64 and ARM are each good at, and what 32-bit and 64-bit mean.
Course contentsLesson 6 of 10
Level 1 · What an operating system does
Level 2 · The systems you will meet
Level 3 · Chips and platforms
Level 4 · Files, folders and apps
After this lesson you can
- Explain what a CPU architecture is
- Tell x86-64 from ARM and say where each is used
- Explain the 4 GB limit of a 32-bit program
12 mincovers 4 glossary entries
Worth reading first: Operating Systems and Kernels
Why code built for x86 will not run on ARM
A CPU architecture is the set of basic orders a chip knows, like add two numbers or fetch a value. A program has to be turned into these orders before it runs. Two families run nearly every device today. x86-64 is in most Windows PCs and servers. ARM is in almost every phone.
Chips in the same family run the same machine code. Chips in different families do not. Hand an ARM chip a program built for x86-64 and it cannot read a single order. That is why a download page asks you to pick x64 or ARM64, and why the wrong pick gives you a file that will not open.
x86-64 grew out of Intel's older 32-bit x86 chips. AMD made the 64-bit version first, in chips sold from 2003, and Intel took it up too. You will see it written as x64, AMD64 or x86_64, and all three mean the same thing. It still runs most old 32-bit programs, which is a big part of why it lasted.
ARM was built to use little power, which is why phones and tablets run on it. The firm Arm designs the plans and sells the right to use them, and others build the real chips. Since 2020, Apple's Macs have used ARM chips of Apple's own design. Some Windows laptops and many cloud servers use ARM too.
The 32 or the 64 is the size of the numbers a chip works with, counted in bits. A memory address is one of those numbers. With 32 bits there are only about 4.3 billion addresses, so a 32-bit program can use at most 4 GB of memory. A 64-bit program can reach far more than any computer holds.
Moving to a new family does not always mean waiting for new builds. Apple ships a translator that lets x86-64 apps run on ARM Macs, and Windows on ARM has one too. The app works, but it is slower and uses more battery than a build made for the chip. A translator is a bridge, not a home.
People often think ARM chips are slow phone chips. That stopped being true years ago. Apple's ARM Macs match or beat x86-64 laptops at many jobs while using far less power. The real rule is simpler. Neither family is best at everything, and code has to be built for the one it runs on.
Which one fits
Worked example
The words for this lesson4
Check yourself
Why can a 32-bit program use only 4 GB of memory?
Finished this lesson?
Marking it complete also marks its 4 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.