Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Craig Burley <burley@gnu.ai.mit.edu>
Subject: Re: Urgent: Manipulating large libraries
Date: Tue, 19 Aug 1997 23:54:36 -0400 (EDT)	[thread overview]
Message-ID: <199708200354.XAA03982@churchy.gnu.ai.mit.edu> (raw)

>I've tried manipulating a large library (^17MB) on an old 60MHz Pentium,
>working on a SCSI-2 Jaz drive (so the disk is not too slow).  A make,
>doing lots of ranlib's, takes nearly 30 minutes even if there are no
>changes; on an IBM rs/6000 43P (not a particularly fast workstation), it
>takes just a few seconds!

I'm no expert on this, but why "doing lots of ranlib's"?  I believe the
only purpose to ranlib, on systems where it has any purpose at all,
is to construct indexes for a library so `ld' can read it efficiently.

So, if you aren't loading from the library between running `ranlib' on
it, eliminate all but the final `ranlib'.

In particular, I am guessing that what you might be doing is something
akin to `ar rc libfoo.a foo1; ranlib libfoo.a; ar rc libfoo.a foo2;
ranlib libfoo.a; ar rc libfoo.a foo3; ranlib libfoo.a; ...', in which
case I think you'd be much better off eliminating all but the final
`ranlib'.

(Perhaps on the IBM system `ranlib' is smart enough to do nothing
if no updating is needed?)

Sometimes modifying `makefile' rules to do this is a bit of a pain,
however...especially when one tries to target a wide variety of
old, buggy, or incomplete versions of `make'.  But it is doable,
worth carefully reading various chunks of documentation to figure
it out.

--

"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson    burley@gnu.ai.mit.edu

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-08-20  3:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-20  3:54 Craig Burley [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-08-20 17:12 Urgent: Manipulating large libraries Dale Martin
1997-08-20 15:37 Przemek Klosowski
1997-08-20  2:50 Stephen Williams
     [not found] <Pine.LNX.3.96.970819205550.29346A-100000@amasis.trin.cam.ac.uk>
1997-08-19 20:35 ` Tom Browder
1997-08-19 20:36 ` Ben Scott
1997-08-19 20:07 Nikhil Nair
1997-08-19 13:20 Stephen Williams
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox