Chapter 17. Memory Management
Memory management is an essential ingredient of every program except the most trivial applications. There are different classifications of memory. Registers, static data area (SDA), stacks, thread local storage (TLS), heaps, virtual memory, and file storage are types of memory. Registers hold data that require quick and efficient memory access. Critical system information, such as the instruction pointer and the stack pointer, are stored in dedicated registers. Static and global values are stored automatically in the SDA. Stacks are thread-specific and hold function-related information. Local variables, parameters, return values, the instruction pointer of the calling function, and other function-related information ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access