Intermediate code generation is a phase in compiler construction that involves the transformation of the parsed and analyzed source code into an intermediate representation. The primary goals of intermediate code generation are to simplify subsequent analysis and optimizations.