V2EX  ›  英汉词典

Compiler Optimization

释义 Definition

编译器优化:编译器在将源代码翻译成机器码(或中间表示)时,为了让程序运行更快、占用更少内存、耗电更低更好利用硬件,对代码进行的自动改写与改进(通常在不改变程序可观察行为的前提下)。常见方向包括:死代码消除、常量折叠、循环优化、内联、寄存器分配、向量化等。

发音 Pronunciation (IPA)

/kəmˈpaɪlər ˌɑːptɪməˈzeɪʃən/

词源 Etymology

  • compiler 源自拉丁语 compilare(“汇集、编纂”),引申为“把源代码汇集处理并翻译成可执行形式的程序”。
  • optimization 来自 optimize(“使最优”)+ -ation(名词后缀),表示“使之更优的过程”。组合起来即“让编译产物更优的过程/技术”。

例句 Examples

The compiler optimization made the program run faster.
编译器优化让程序运行得更快了。

After enabling compiler optimization, the binary became smaller and faster, but debugging was harder because the generated code no longer matched the source line by line.
开启编译器优化后,可执行文件更小、速度更快,但调试更困难,因为生成的代码不再与源代码逐行对应。

相关词 Related Words

文学与经典作品 Notable Works

  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”)——系统讨论多种编译器优化方法。
  • Engineering a Compiler(Cooper & Torczon)——以工程实践视角讲解优化与实现。
  • Advanced Compiler Design and Implementation(Steven S. Muchnick)——深入覆盖经典与高级优化技术。
  • Modern Compiler Implementation(Andrew W. Appel)——通过具体实现路径介绍优化与相关数据结构。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   929 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 23:47 · PVG 07:47 · LAX 15:47 · JFK 18:47
♥ Do have faith in what you're doing.