Module 15 · The Preprocessor, Headers and Multi File Builds
The Preprocessor: What Happens Before the Compiler
ProReading
Maria's tax program is 12 lines long. She asks a simple question: what does the compiler actually see?
Checking what this lesson needs for you…
What is inside The Preprocessor: What Happens Before the Compiler
- The steps before the compiler
- gcc -E shows the file the compiler reads
- #include pastes a whole file in
- #define, through the preprocessor's eyes
- Conditional compilation: #if, #ifdef and #ifndef
- Predefined macros: the compiler describes itself
- assert is a macro built from them
- #error and #warning talk to the build