In computer science, the code generation is a process on compilers that actually outputs machine code on the target environment.

Code generators usually take intermediate form generated by directly semantic analysis or intermediate code generators. It also refers to one of the trial generations in genetic programming


See also: compiler, programming language, semantic analysis