V2EX  ›  英汉词典

Preprocessor

发音 Pronunciation

/ˌpriːˈprɒsɛsər/ (British) /ˌpriːˈprɑːsɛsər/ (American)

释义 Definition

预处理器。指在主要处理或编译阶段之前,对数据或代码进行初步处理的程序或工具。在计算机科学中,预处理器通常用于在编译源代码之前执行文本替换、宏展开、条件编译等操作。

例句 Examples

The C preprocessor handles all the #include and #define directives before compilation begins.
C 语言预处理器在编译开始之前处理所有的 #include#define 指令。

By writing custom preprocessor macros, the team was able to maintain a single codebase that compiled correctly on both Linux and Windows without duplicating platform-specific logic.
通过编写自定义的预处理器宏,团队得以维护一套代码库,在 Linux 和 Windows 上都能正确编译,而无需重复编写特定于平台的逻辑。

词源 Etymology

由前缀 pre-(意为"在……之前",源自拉丁语 prae)与 processor(处理器)组合而成。Processor 源自拉丁语 processus(前进、过程),加上表示施动者的后缀 -or。整个词字面意思即"在处理之前进行处理的工具"。该词随20世纪中期计算机科学的发展而广泛使用,尤其与 C 语言的预处理器密切相关。

相关词汇 Related Words

文学与技术作品引用 Literary & Technical References

  • Brian W. Kernighan 与 Dennis M. Ritchie 合著的 The C Programming Language 中详细介绍了 C 预处理器的用法,这是该词最经典的技术语境。
  • The Art of Unix Programming(Eric S. Raymond 著)中讨论了预处理器在 Unix 工具链中的角色。
  • Expert C Programming: Deep C Secrets(Peter van der Linden 著)中深入探讨了 C 预处理器的高级技巧与陷阱。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5582 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 07:36 · PVG 15:36 · LAX 00:36 · JFK 03:36
♥ Do have faith in what you're doing.