From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199708200354.XAA03982@churchy.gnu.ai.mit.edu> Date: Tue, 19 Aug 1997 23:54:36 -0400 (EDT) From: Craig Burley Subject: Re: Urgent: Manipulating large libraries >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