1// Extract Preprocessed Code
2$ gcc -E cprogram.c
3
4// Convert to Assembly Code
5$ gcc -S cprogram.c
6
7// Create Object Files
8$ as cprogram.s -o cprogram.o
9
10// Linking object files
11$ gcc htd.o cprogram.o -o cprogram.exe
12
13// Get all Intermediate Files
14$ gcc –Wall –save-temps cprogram.c –o cprogram