Skip to content
Tactiverge

Computer architecture

Address space

Also called: memory address · addressable memory · address bus · byte-addressable

Definition

The address space is the range of addresses a processor can generate. With n address bits and byte addressing, it can reach 2^n bytes.

Picture it

Addresses are house numbers for bytes. More address bits double the street each time. On microcontrollers the address space is shared between flash, RAM and peripheral registers, each mapped to its own range.

The maths

addressable bytes = 2^n
last address = 2^n − 1
SI units used in this entry
QuantityUnitSymbol
informationbyte (8 bits)B
informationbitbit

Worked example

A processor has 16 address lines and byte addressing. How much memory can it address, and what is the highest address in hex?

  1. 2^16 = 65536 bytes = 64 KiB
  2. Highest address 65535 = 0xFFFF

Answer65536 bytes (64 KiB), highest address 0xFFFF (65535).

✓ The 2 numbers in this answer are recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: 1 KiB is 1024 bytes; 1 kB is 1000. Memory sizes usually mean the binary kind.
  • Misconception: Having a large address space does not mean that much memory is installed.