← 返回卡片

原书出处

Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)

3 Chapter 3. Concepts Introduction to the Stack

First Edition · 核验版本的摘录快照 · 导入于 2026-11-14T02:52:10.272Z

() is called, a new

stack frame is added to the stack, beyond where the stack frame for the calling function ends, and the CPU normally updates a register—the stack pointer—to point to the new stack frame. When the inner function f() returns, the stack pointer is reset to where it was before the call, which will be the caller’s stack frame, intact and unmodified. If the caller

subsequently invokes

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch03.html#id71

EPUB SHA-256:523496927c4fd2d3fc11c9b81ad96b76201e66d746b6ac29d71d61d3517181c1