This document discusses intermediate code in compilers. It begins by describing the stages of a compiler from source code to intermediate code to machine code. It then provides an example of translating a simple C program to intermediate code. The remainder of the document describes aspects of a simple virtual machine that can execute intermediate code, including instructions like LIT, LOD, STO, and OPR, and an example of intermediate code generated for a small C program.
Related topics: