-
Overview
From dragon book, three-address code consists of a sequence of asembly-like instructions with three operands per instruction.
Each operand can act like a register.
-
Three-address code
Three-address code (TAC, 3AC) is an intermedia code used by optimizing compilers to aid in the implementation of code-improving transformations.
Each TAC instruction has at most three operands and is typically a combination of assignment and a binary operator.
Since three-address code is used as an intermediate language within compilers, the operands will most likely not be concrete memory addresses or processor registers, but rather symbolic addresses that will be tranlated into actual addresses during resigter allocation.
A refinement of three-address code is A-normal form (ANF).
-
A-normal form
A-normal form (ANF) is an intermediate representation of programs in functional compulers introduced by Sabry and Felleisen in 1992.
-
Register allocation
In compiler optimization, register allocation is the process of assigning a large number of target program variables onto a small number of CPU registers.
理解three-address code||Register allocation
最新推荐文章于 2021-12-04 16:55:11 发布