gcc -c ലിങ്ക് ചെയ്യാതെ തന്നെ സോഴ്സ് ഫയലുകൾ കംപൈൽ ചെയ്യുന്നു.
$ gcc -c [options] [source files]
myfile.c എന്ന സോഴ്സ് ഫയൽ എഴുതുക:
// myfile.c
#include <stdio.h>
void main()
{
printf("Program run\n");
}
myfile.c കംപൈൽ ചെയ്യുക:
$ gcc -c myfile.c
ഈ സമാഹാരം myfile.o ഒബ്ജക്റ്റ് ഫയൽ സൃഷ്ടിച്ചു.