V2EX  ›  英汉词典

Compile-time

定义 Definition

compile-time(编译期/编译时):指程序从源代码被编译器处理并生成可执行文件或目标代码的阶段与相关行为;在此阶段进行的检查、推断与优化(如类型检查、常量折叠、模板/宏展开等)都称为“编译期”的事情。也常与 run-time(运行期/运行时)对比使用。

发音 Pronunciation (IPA)

/kəmˈpaɪl taɪm/

例句 Examples

Compile-time errors stop the program from being built.
编译期错误会导致程序无法构建。

Some languages can evaluate certain expressions at compile-time to improve performance and safety.
有些语言可以在编译期计算某些表达式,以提升性能与安全性。

词源 Etymology

compile(编译、汇编)+ time(时间、阶段)构成的复合词。compile 源自拉丁语 compilare,原意有“汇集、整理(材料)”之意,后来在计算机语境中引申为“把源代码整理并转换为机器可执行的形式”。因此 compile-time 就是“进行编译这一过程的阶段”。

相关词 Related Words

文学与著作中的用例 Literary Works

  • The C Programming Language(Kernighan & Ritchie)——讨论编译、链接与错误诊断时常用到“编译时/运行时”的区分。
  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”)——系统阐述编译器在编译期进行的分析与优化。
  • The Rust Programming Language(Klabnik & Nichols)——在类型系统与安全性章节中频繁强调“编译期保证”。
  • *Effective C++*(Scott Meyers)——涉及模板与静态检查时常谈到“编译期”与“运行期”的取舍。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4346 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 02:58 · PVG 10:58 · LAX 18:58 · JFK 21:58
♥ Do have faith in what you're doing.