Skip to Main Content
Extreme C
book

Extreme C

by Kamran Amini
October 2019
Intermediate to advanced content levelIntermediate to advanced
822 pages
20h 45m
English
Packt Publishing
Content preview from Extreme C

Chapter 05

Stack and Heap

In the previous chapter, we ran an investigation of the memory layout of a running process. System programming without knowing enough about the memory structure and its various segments is like doing surgery without knowing the anatomy of the human body. The previous chapter just gave us the basic information regarding the different segments in the process memory layout, but this chapter wants us to just focus on the most frequently used segments: Stack and Heap.

As a programmer, you are mostly busy working with Stack and Heap segments. Other segments such as Data or BSS are less in use, or you have less control over them. That's basically because of the fact that the Data and BSS segments are generated by the compiler, ...

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.
Start your free trial

You might also like

Effective C

Effective C

Robert C. Seacord
Modern C

Modern C

Jens Gustedt

Publisher Resources

ISBN: 9781789343625Supplemental Content