V2EX  ›  英汉词典
Enqueued related words: Interference-graph, Graph-coloring

Register Allocation

释义 Definition

(编译器术语)寄存器分配:编译器在生成机器代码时,把程序中的变量或临时值尽量分配到 CPU 寄存器中,以减少访问内存、提高运行速度;当寄存器不够用时,可能需要把部分值“溢出”(spill)到内存。也常被称为 register allocation,属于编译器后端优化的一部分。

发音 Pronunciation (IPA)

/ˈrɛdʒɪstər ˌæləˈkeɪʃən/

例句 Examples

Register allocation can make programs faster.
寄存器分配可以让程序运行得更快。

Good register allocation reduces memory traffic by keeping frequently used values in registers, but complex control flow can force spills.
良好的寄存器分配通过把高频使用的值保留在寄存器中来减少内存访问,但复杂的控制流可能会迫使一些值溢出到内存。

词源 Etymology

register 源自拉丁语 registrum(登记册、记录),在计算机体系结构里引申为“用于存放数据的高速存储单元(寄存器)”;allocation 源自拉丁语 allocare(分配、安排)。合起来字面意思就是“对寄存器进行分配/安排”,对应编译器把值映射到寄存器的过程。

相关词 Related Words

文学与经典作品 Literary Works

  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”)
  • Engineering a Compiler(Cooper & Torczon)
  • Modern Compiler Implementation in C/Java/ML(Andrew W. Appel)
  • Advanced Compiler Design and Implementation(Steven Muchnick)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   927 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 23:46 · PVG 07:46 · LAX 15:46 · JFK 18:46
♥ Do have faith in what you're doing.