2.2 The processor

The processor (CPU) of a computer obviously executes code, otherwise a computer is useless! However, the “code” that is natively understood by a CPU is nothing more than binary patterns. Each architecture has its own mapping from binary patterns to operations to be performed.

The binary patterns of instructions are also known as “machine code”. While a person can write programs in machine code, it is certainly not an efficient use of time. This is because it is difficult for most people to memorize the binary patterns (each one at least 32 bits wide!) of tens or hundreds of instructions. It is even more difficult for a person to keep track of the offset of instructions for branching. Similarly, a person cannot keep track of how data memory is used for different variables.