Professional Documents
Culture Documents
L08 Intro To C
L08 Intro To C
Topics
• Compilation
• Using the gcc Compiler
• The Anatomy of a C Program
• 104 C Programming Standards and Indentation
Styles
Reading
• Sections 2.1 - 2.4
Stage 1: Preprocessing
o Performed by a program called the preprocessor
o Modifies the source code (in RAM) according to
preprocessor directives (preprocessor
commands) embedded in the source code
o Strips comments and white space from the code
o The source code as stored on disk is not modified.
Editor
Source File pgm.c
Preprocessor
Compiler
Program Object Code File pgm.o
Other Object Code Files (if any)
Linker
• Singular!
• One character defined character set.
• Surrounded on the single quotation mark.
• Examples:
o ‘A’
o ‘a’
o ‘$’
o ‘4’