There are four steps
1. Preprocessing
2. Compilation
3. Assembling
4. Linker
STEPS | INPUT | OUTPUT | GCC |
Pre Processing | source file | preprocessed output (removing all # defines & replacing macros) | gcc -E a.c |
Compilation | Preprocessed output file | Assembly language code | gcc -S a.c |
Assembling | Assembly code | Machine code | gcc -c a.c |
Linker | Machine code | executable file | gcc a.c |
No comments:
Post a Comment