Intermediate Code Forms (Variant I and Variant II)
Intermediate Code Forms (Variant I and Variant II)
• Variant-I
• The first operand is represented by a single digit number which is
a code for a register (1-4 for AREG-DREG) or the condition code
itself(1-6 for LT-ANY)
• The second operand which is a memory operand, is represented
by a pair of the form
• (operand class, code)
• Where operand class is one of C, S, L standing for constant,
symbol and literal
• e.g The operand descriptor for the statement
START 200 is (C,200)
For a symbol or literal the code field contains the
ordinal number of the operands entry in SYMTAB
or LITTTAB.