Next: , Previous: , Up: compiler   [Index]


17.2 Compiler coding conventions

Throughout the compiler code variables with the following names appear:

op

Scheme symbol representing an operation to be directly translated into assembly. Examples: ‘alloc’, ‘mref’, ‘mref32’, ‘bref’, ‘logand’, ‘logxor’, ‘logor’, ‘int+’, ‘int-’, ‘int*’, ‘int-quotient’, ‘int-remainder’, ‘sll’, ‘sra’.

rator

Represents a reference to an operator: a function coded in assembly or C language.

rands

Scheme list holding the operands to which an operation must be applied. These operands are in such a format that can be directly used in the assembly S–expression like:

(make-set eax (car rands))

which generates an assignment operation to store the first element of rands into the eax processor register.