Efficient linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux