V2EX  ›  英汉词典

Stack Pointer

释义 Definition

stack pointer(栈指针):在计算机体系结构中,用来指向当前栈顶位置的寄存器或内存地址。它随着函数调用、返回、入栈(push)与出栈(pop)等操作而变化。常见缩写为 SP。(在不同架构里也可能有相关变体,如帧指针 FP。)

发音 Pronunciation (IPA)

/ˈstæk ˌpɔɪntər/

例句 Examples

The stack pointer moves when you push or pop values.
当你将数值入栈或出栈时,栈指针会移动。

After the function call, the stack pointer is adjusted to reserve space for local variables, which must be restored before returning.
函数调用后,栈指针会被调整以为局部变量预留空间,并且在返回前必须恢复。

词源 Etymology

stack 原指“堆叠的一摞”,在计算机术语中借用来表示“后进先出(LIFO)的数据结构:栈”;pointer 来自“指向者/指示器”的含义。在计算机体系结构里,“stack pointer”字面意思就是“指向栈位置的指针”,逐渐固定为“指向栈顶的寄存器/地址”这一专业含义。

相关词 Related Words

文学与典籍 Literary Works

  • Computer Organization and Design(David A. Patterson, John L. Hennessy):在讲解过程调用约定、寄存器与内存栈时频繁涉及 stack pointer
  • The Art of Assembly Language(Randall Hyde):讨论函数调用、参数传递与栈帧布局时使用 stack pointer
  • Intel® 64 and IA-32 Architectures Software Developer’s Manual:在说明 RSP/ESP 等寄存器与栈操作指令时系统性出现 stack pointer
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2212 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 14:58 · PVG 22:58 · LAX 06:58 · JFK 09:58
♥ Do have faith in what you're doing.