Simple TAC Instruction Set

TAC

This handout summarizes a simple TAC intermediate language. There are many choices as to the exact instructions to include in such a language, and you will probably want to modify and extend this variant when we translate IC programs into TAC.

One representation note: TAC operands that name program variables should refer to the symbol-table entries you built in PA 2, not to raw identifier strings, so that distinct variables with the same name stay distinct.

Instruction Forms