Compiler-specific
Definition / 释义
compiler-specific(形容词):编译器特定的;指某种行为、语法、选项、扩展或结果只在某一款编译器(或某一编译器家族/版本)中成立,不一定符合语言标准,因此在不同编译器间可能不可移植。
Pronunciation / 发音
/ kəmˈpaɪlər spəˈsɪfɪk /
Examples / 例句
This warning is compiler-specific.
这个警告是特定编译器才会出现的。
The code relies on compiler-specific extensions, so it may fail to build on other platforms even if it follows the language standard elsewhere.
这段代码依赖编译器特定的扩展,所以即使在别处看起来符合语言标准,换到其他平台也可能无法编译通过。
Etymology / 词源
由 compiler(编译器)+ specific(特定的)组合而成的复合形容词。常见于软件工程与编程语境,用来强调“与某个编译器实现细节绑定”,暗示可能存在可移植性风险。
Related Words / 相关词
Literary Works / 文学与著作例证
- The C Programming Language(Kernighan & Ritchie):讨论可移植 C 代码时,常提及应避免依赖特定实现/编译器行为(与 “compiler-specific” 同类概念)。
- C++ Primer(Lippman 等):在讲解语言特性与编译器支持差异时,会涉及“编译器特定扩展/行为”的表述与讨论。
- Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”):在介绍编译器实现与优化差异时,常使用与“compiler-specific behavior/assumptions”相近的技术表述。
- GCC / Clang 官方文档(如 GCC manual, Clang Users Manual):经常直接使用 “compiler-specific options/extensions” 来说明某些特性仅适用于该编译器。