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:
x
1
gcc -c library.c
2
gcc -c entry_point.c
3
gcc -o executable library.o entry_point.o
4
5
# Run the program:
6
./executable