Code generation

As code generation, and code generation automatic generation of code in a particular programming language is called.

Examples for code generation are:

  • The generation of source code from a diagram, a model, such as a flow chart, a structure diagram or a UML model, or otherwise stored in metadata descriptions to reduce the costs and time involved, or to increase the quality of software development (see also Model Driven Architecture, Universal Application and CASE)
  • Assembler that generate machine code from assembly code
  • Compilers that generate from code in a high level language assembly code, machine code or bytecode
  • The restoration of a source code of the translated program to reverse engineer
  • The automatic generation from existing code or existing program components, such as the creation of an IDL interface from a Java interface
  • The generation of the implementation of an abstract description, for example, in Application Server frameworks like J2EE
  • The automatic generation of new sources from comments and annotations (metadata) in existing source code, for example in Java using XDoclet or annotations.
  • In the field of embedded systems (eg vehicle control units) the automatic generation of production code with a code generator
195641
de