Skip to content

Instantly share code, notes, and snippets.

@dsamarin
Created October 4, 2011 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsamarin/1260689 to your computer and use it in GitHub Desktop.
Save dsamarin/1260689 to your computer and use it in GitHub Desktop.
C Translation Phases
1. Map characters to source character set (not relevant)
2. Trigraph sequences replaced (no one cares, low priority)
3. Backslash followed by newline deleted
4. Decomposed into tokens
5. Preprocessing directives executed
6. Macros expanded
7. _Pragma execution
8. Map characters to execution set (not relevant)
9. Adjacent string literals concatinated
10. Parsing
11. Linkage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment