V2EX  ›  英汉词典
Enqueued related words: Frontend, Parse Tree

Intermediate Representation

释义 Definition

中间表示(IR):在编译器、解释器或代码分析工具中,位于“源代码”和“目标机器代码”之间的一种内部代码形式,用来便于优化、分析、跨平台生成代码。常见于编译器后端与优化阶段。(也可泛指任何“中间层的表示形式”。)

例句 Examples

An intermediate representation helps the compiler optimize the program.
中间表示能帮助编译器对程序进行优化。

The team translated the source code into an intermediate representation, ran several optimization passes, and then emitted machine code for different targets.
团队先把源代码转换成中间表示,执行多轮优化流程,然后为不同目标平台生成机器码。

发音 Pronunciation (IPA)

/ˌɪntərˈmiːdiət ˌrɛprɪzɛnˈteɪʃən/

词源 Etymology

intermediate 来自拉丁语 intermedius,意为“在中间的”;representation 源自拉丁语 repraesentare,有“呈现、表达”的含义。合起来就是“用于表达某物的中间形式”,在计算机领域特指编译过程中用于承上启下的内部代码/结构。

相关词 Related Words

文献与作品 Literary / Notable Works

  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”)——系统讲解 IR、优化与代码生成。
  • Engineering a Compiler(Cooper & Torczon)——大量使用“intermediate representation”讨论编译器工程实践。
  • Modern Compiler Implementation(Andrew W. Appel)——以 IR 为核心串起语法分析、优化与后端实现。
  • LLVM Language Reference Manual(LLVM 官方文档)——详细描述 LLVM IR(最具代表性的 IR 之一)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   739 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 20:25 · PVG 04:25 · LAX 12:25 · JFK 15:25
♥ Do have faith in what you're doing.