© Giuseppe Di Cataldo 2016

Giuseppe Di Cataldo, Stack Frames, 10.1007/978-1-4842-2181-5_5

5. Stack Frames

Giuseppe Di Cataldo

(1)Catania, Italy

This chapter takes us deep into the heart of the book to explore the stack frame layout of function calls. To this end we need a clear, in-depth understanding of what happens when one function calls another, particularly how data are passed from caller to callee and how the memory content changes when functions’ data are pushed to the current process’ memory; this is the main subject of the first part of this long chapter.

Then we will create an executable test file on each of the Linux distributions that were selected in Chapter 2. This is the longest and the most interesting part of the chapter, allowing ...

Get Stack Frames: A Look From Inside 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.