This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compile question
- From: Ian Lance Taylor <iant at google dot com>
- To: horseriver <horserivers at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 5 Jan 2013 21:26:08 -0800
- Subject: Re: compile question
- References: <20130105191804.GB3090@debian.localdomain>
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