Answers for "compilation process of a c program"

C
2

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
Posted by: Guest on January-20-2021

Code answers related to "C"

Browse Popular Code Answers by Language