notes/education/software development/ECE1400/Compilation Steps.md

14 lines
497 B
Markdown
Raw Normal View History

2024-09-04 20:58:35 +00:00
1. Preprocessing: The preprocessor obeys commands that begin with #, also known as directives
2024-09-04 21:03:35 +00:00
Commands for the preprocessor are called directives. Directives begin with a pound sign, and they do not end with a semicolon.
2024-09-04 20:58:35 +00:00
2024-09-04 21:03:35 +00:00
Example:
```c
//
#include <stdio.h>
```
2024-09-04 20:58:35 +00:00
2. Compiling. A compiler translates then translates the program into machine instructions.
3. Linking: The generated objects are combined to create a complete executable.
The preprocessor is typically integrated with the compiler.