Chapter 2Stack Memory

DOI: 10.1201/9781003257981-2

2.1 Values and Addresses

In a computer, programs and data must be kept in storage. Storage can be divided into volatile and non-volatile. Volatile storage requires electricity, and can keep data only when a computer is turned on. Volatile storage is usually called “memory”. Non-volatile storage persists when a computer is turned off. Non-volatile storage usually uses flash memory or hard disks. Flash memory is also called a solid-state disk or SSD. A typical laptop computer today has several GB of memory. G means “giga” for one billion. B means “byte” and is a sequence of 8 bits. Each bit can store either 0 or 1. If a laptop has 8 GB of memory, the computer can store 64 billion bits in memory. ...

Get Intermediate C Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.