public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Efficient linking
@ 2003-09-11 19:59 Starling
  2003-09-11 20:03 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Starling @ 2003-09-11 19:59 UTC (permalink / raw)
  To: gcc-help

On the subject of incremental linking I did find something saying you
can go
ld -r -o piece1.o A.o B.o C.o ...
ld -r -o piece2.o D.o E.o F.o ...
ld -o all main.o piece1.o piece2.o
And that way you don't have to relink D, E, and F when A, B or C
changes.  However, wouldn't that generate a large object file
(pieceN.o)?  How is linking piece1.o and piece2.o more efficient than
linking all of the lesser object files at once?  Is it more efficient,
or does the linker have to piece together the files just as if they
were separate?


Starling

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-12 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 19:59 Efficient linking Starling
2003-09-11 20:03 ` Ian Lance Taylor
2003-09-11 22:06   ` Starling
2003-09-12 12:42     ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).