C Preprocessor - Phases

Phases

Preprocessing is defined by the first four (of eight) phases of translation specified in the C Standard.

  1. Trigraph replacement: The preprocessor replaces trigraph sequences with the characters they represent.
  2. Line splicing: Physical source lines that are continued with escaped newline sequences are spliced to form logical lines.
  3. Tokenization: The preprocessor breaks the result into preprocessing tokens and whitespace. It replaces comments with whitespace.
  4. Macro expansion and directive handling: Preprocessing directive lines, including file inclusion and conditional compilation, are executed. The preprocessor simultaneously expands macros and, in the 1999 version of the C standard, handles _Pragma operators.

Read more about this topic:  C Preprocessor

Famous quotes containing the word phases:

    That man is to be pitied who cannot enjoy social intercourse without eating and drinking. The lowest orders, it is true, cannot imagine a cheerful assembly without the attractions of the table, and this reflection alone should induce all who aim at intellectual culture to endeavor to avoid placing the choicest phases of social life on such a basis.
    Mrs. H. O. Ward (1824–1899)

    But parents can be understanding and accept the more difficult stages as necessary times of growth for the child. Parents can appreciate the fact that these phases are not easy for the child to live through either; rapid growth times are hard on a child. Perhaps it’s a small comfort to know that the harder-to-live-with stages do alternate with the calmer times,so parents can count on getting periodic breaks.
    Saf Lerman (20th century)

    This socialism will develop in all its phases until it reaches its own extremes and absurdities. Then once again a cry of denial will break from the titanic chest of the revolutionary minority and again a mortal struggle will begin, in which socialism will play the role of contemporary conservatism and will be overwhelmed in the subsequent revolution, as yet unknown to us.
    Alexander Herzen (1812–1870)