3.2. Compilation
After elaboration, the document is compiled into an executable program.
Each genre provides a main function that will carry out the remainder of the steps.
Usually, this main function can be applied to the part that represents the whole document; however, genres that don't have a strict linear order (such as the website genre) will provide their own means of configuring the document's layout.
The main function typically also takes configuration parameters both in the code and on the command line, such as which output formats to generate or customizations to the generated output.