Three-Address Code とは?
three-address code は、すべての命令が最大 3 つのオペランドで 1 つの単純な演算を行い、通常は 2 つの入力から結果を計算するコンパイラの中間表現です。複雑な式は、一時変数を使ってそうした命令の並びに分解されます。均一で単純な形をしているため、解析と最適化に便利です。
なぜ重要か
豊かな式を単純な 3 オペランドの手順に落とすことで、最適化に扱いやすい規則的な形を与えます。ソースからマシンコードへの道のりで、よく通る中継地点です。
関連ガイド
What Is Static Single Assignment?Static single assignment is an intermediate form where each variable is assigned exactly once, simplifying ma…
What Is a Register Machine?A register machine is an execution model whose instructions read and write a set of named registers instead o…
What Is a Basic Block?A basic block is a straight-line sequence of instructions with one entry and one exit, used as the unit of an…