This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]