liveBook · Manning

Stack frame

A stack frame is a runtime record that holds the local context and execution state for one active function or method invocation.

How 3 Manning books explain it

.NET in Action, Second Edition

A stack frame is the portion of a call stack containing a function invocation's local data, arguments, and return information.

How it is used
Uses frames to connect CPU-profile samples to executing methods and to explain call-stack behavior.
How deep it goes
Explains invocation data, call order, recursion, and profile operations through a simplified stack model, without specifying an exact runtime layout.
Examples
Traces nested method calls, compares stack and heap arrays, and applies PerfView filters, folds, and groups.
What you can do after
Diagnose/debug with PerfView by reading sampled call stacks and reducing irrelevant frames with filters, folds, and groups.

Read how .NET in Action, Second Edition explains stack frame →

Rust in Action: Systems programming concepts and techniques

A stack frame is a per-function-call memory record containing call state, arguments, local variables, and return information.

How it is used
Explains how function calls preserve state in memory and support return control and exception traversal.
How deep it goes
Explains frame contents, LIFO behavior, stack-pointer movement, and unwinding, but stops short of frame-layout implementation details.
Examples
Uses a dinner-plate comparison, a Rust password-checking function, and FledgeOS exception unwinding.
What you can do after
Evaluate and understand how calls, returns, and exception unwinding move through function-specific memory records.

Read how Rust in Action: Systems programming concepts and techniques explains stack frame →

100 Go Mistakes and How to Avoid Them

A stack frame is the runtime record containing a function invocation's local state and associated execution information.

How it is used
Explains local storage, function-call behavior, pointer validity, and stack-versus-heap allocation consequences.
How deep it goes
Traces frame creation and retirement through nested calls, stopping short of detailed runtime allocation internals.
Examples
Uses sumValue, sumPtr, stack diagrams, and allocation benchmarks to contrast value and pointer results.
What you can do after
Evaluate function-local storage and diagnose pointer-lifetime and allocation effects using execution traces and benchmarks.

Read how 100 Go Mistakes and How to Avoid Them explains stack frame →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.