compilation process of a c program
snippet in c

compilation process of a c program

user9398

// 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