compile question

Ian Lance Taylor iant@google.com
Sun Jan 6 09:28:00 GMT 2013


On Sat, Jan 5, 2013 at 11:18 AM, horseriver <horserivers@gmail.com> wrote:
>
>   when I use gcc compiling a .c file to a .o file , will it call  ld to  do some link work ?

If you run "gcc -o foo.o -c foo.c", or simply "gcc -c foo.c", it will
not run ld.

You can see all the subprograms that gcc runs by using the -v option.

Ian



More information about the Gcc-help mailing list