Code Generation

At this stage of the project we have translated our source program into a sequence of 4-tuples, called intermediate code. The 4-tuples are intermediate code in the sense that they reside between the source code and assembly code or machine code. The idea behind code generation is to take our intermediate code, the 4-tuples, and generate assembly code for a specific hardware platform and operating system. This is the first place that we get specific about the computer system that our source program will execute on.