gcc -c compila os arquivos de origem sem vincular.
$ gcc -c [options] [source files]
Escreva o arquivo fonte myfile.c :
// myfile.c
#include <stdio.h>
void main()
{
printf("Program run\n");
}
Compilar meuarquivo.c :
$ gcc -c myfile.c
Esta compilação gerou oarquivo objeto myfile.o .