c program compilation process code example
Example: compilation process of a c program
// Extract Preprocessed Code
$ gcc -E cprogram.c
// Convert to Assembly Code
$ gcc -S cprogram.c
// Create Object Files
$ as cprogram.s -o cprogram.o
// Linking object files
$ gcc htd.o cprogram.o -o cprogram.exe
// Get all Intermediate Files
$ gcc –Wall –save-temps cprogram.c –o cprogram