Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tringali@news.ed.ray.com (Scott Tringali)
Subject: Compressing archives...
Date: 1996/01/04	[thread overview]
Message-ID: <4cgl9r$s7e@news.res.ray.com> (raw)

We've noticed a 22:1 increase in debug vs. non-debug builds for some of our
large software systems here.  This of course seriously impacts our disk space.
I have been looking into a method of somehow compressing our object files
and/or libraries, which seem to take up most of our disk space.
Unfortunately, I have to deal with our "home grown" build tool, which makes
things a little tougher.

After reading through the cc man pages, I thought I found exactly what I was
looking for: the -compress option.  Sure enough, the .o files (especially with
symbol information) are MUCH smaller, but it doesn't seem to be compatible
with the ar archiver our build tool uses to maintain libraries.  For example:

cc -c -compress <bunch of .c files> ar qcu test.a <all .o files> ar: Error:
malformed archive (at 2611)

I have, however, found a happy medium.  I found an ar option that will
compress the resulting .a file -- the Z option.  This works fine, however, all
my .a files are compressed, while .o files are still huge.  Before I complain
too much, this has already helped a lot (it cuts the debug libraries' size in
half, and when some are > 10 megs, that is great) but I'd like to get the .o
files as well.  Any ideas, anyone?  Thanks in advance.

--
Scott J. Tringali, tringali@ultranet.com
Raytheon Electronic Systems, International Air Traffic Control 



             reply	other threads:[~1996-01-04  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-04  5:00 Scott Tringali [this message]
1996-01-05  5:00 ` Compressing archives Scott Tringali
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