Tag archive for "intermediate code"
Most compilers use some kind of intermediate code which is a program representation somewhere betwen the high-level source code and executable code for target processor.
Turbo Pascal uses few procedures to generate any x86 instruction needed. In general two intermediate code records are used: one for the actual inctruction opcodes and immediate data and one for references.
This procedure generates target (x86) code from intermediate code instructions. This is the last phase in program block compilation. If debug info is enabled, source line code offsets will be saved into dedicated table, redundant loadings of addresses to ES:DI register pair will be removed and near jumps will be converted to short jumps where …
This procedure generates intermediate code from opcodes and references generated for current assembler instruction.