This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: RPATH/RUNPATH issue, equivalent to -headerpad on OSX
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Michael Hennebry'" <hennebry at web dot cs dot ndsu dot NoDak dot edu>, "'Jakub Jelinek'" <jakub at redhat dot com>
- Cc: "'Alexander Neundorf'" <neundorf at kde dot org>, <binutils at sourceware dot org>
- Date: Thu, 3 Jan 2008 16:49:37 -0000
- Subject: RE: RPATH/RUNPATH issue, equivalent to -headerpad on OSX
- References: <20080103154535.GK2947@sunsite.mff.cuni.cz> <20080103101537.Q53771-100000@web.cs.ndsu.nodak.edu>
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....