How program is compiled in C

Assuming that there are two files to be compiled in C, the overall flow to yield an executable is the following:

The commands used to compile the two files above are:

gcc -c library.c
gcc -c entry_point.c 
gcc -o executable library.o entry_point.o

# Run the program:
Back to top