Tasks Performed By Pre-processor
Preprocessor :
Program that Processes or Analyzes the source code file before Given to the Compiler
Tasks Performed By Pre-processor :
- Replaces Trigraph Sequences
- Joins any Line with the Backslash Character into Single Line
- Divide Program into Set of Tokens
- Expand Macroes
- Remove Comments and Replace it by Single Space
- Represent the Escape Sequence by its Internal Representation
- Concatenate adjacent Constant character String
Note :
- They Begin with a # which must be first non-space character on the line
- They do not ends with semicolon
Types :
- Macro Substitution Directive
- File Inclusive
- Conditional Compilation