RPATH/RUNPATH issue, equivalent to -headerpad on OSX

Dave Korn dave.korn@artimi.com
Fri Jan 4 14:28:00 GMT 2008


On 03 January 2008 16:20, Michael Hennebry wrote:

  [Haven't been following the thread but just have a generic point to make:]

> On Thu, 3 Jan 2008, Jakub Jelinek wrote:

>>> This works correctly and convenient, but it takes a lot of time (really a
>>> lot for big projects).
> 
> This surprises me.
> I'd have thought that link time would
> be small compared to compile time.

  It's a natural assumption, but consider what happens as projects get larger:

- compile time is roughly linear in the number of lines of source code
(overall/per module)
- link time (because of having to resolve everything against everything else)
is quadratic.

  So when things start scaling up, link time can easily overhaul compile time.
And that's before you even factor in that use of make and dependency testing
.c files against .o files means that you don't often have to recompile many
files of a project most times you build it, whereas the final link always has
to link the same number of .o/.a files together.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Binutils mailing list