O'Reilly logo

C++ All-in-One For Dummies, 3rd Edition by John Paul Mueller, Jeff Cogswell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Traveling About the Stack

In This Chapter

arrow Moving about the stack

arrow How local variables are stored

arrow Viewing threads

arrow Tracing through assembly code

arrow Viewing memory

Debuggers can be powerful things. They can leap tall computer applications in a single bound and see through them to find all their flaws. The more you know about these little debuggers, the more you can put them to use. In this chapter, we show you how to move about the stack and make use of advanced debugger features.

Stacking Your Data

A stack is a common thing in the computer world. We have stacks of bills and stacks of paychecks and stacks of data. The stacks of data are interesting because, unlike bills and paychecks, they live inside the computer’s memory. But the stack metaphor is appropriate. When the operating system runs an application, it gives that application a stack, which is simply a big chunk of memory. But the data is stored just like a stack of cards: With a stack of real cards, you can put a card ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required