Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!metro!news From: glenn@suphys.physics.su.OZ.AU (Glenn Geers) Newsgroups: comp.unix.sysv386 Subject: Re: Shrinking the size of your executables (mcs(1) command) Message-ID: <1990Oct31.075633.16519@metro.ucc.su.OZ.AU> Date: 31 Oct 90 07:56:33 GMT References: <6924@sugar.hackercorp.com> Sender: news@metro.ucc.su.OZ.AU (news) Organization: Uni Computing Service, Uni of Sydney, Australia Lines: 32 Nntp-Posting-Host: suphys.physics.su.oz.au From article <6924@sugar.hackercorp.com>, by karl@sugar.hackercorp.com (Karl Lehenbauer): > The "mcs" command, used to manipulate the object file comment section in > System V, does not appear to be a very well-known command, in that I > have never seen it mentioned on the net. > > Anyone who has done a "what" on an executable after stripping the symbol > table has been dismayed to see countless "Unix System V/386 Release 3.2 > lib/libc.a" messages and so forth. > > mcs, a poorly named command IMO, can get rid of those guys. "mcs -d" on > one of my tasks reduced the size from 98K to 89K bytes. I recommend putting > a "mcs -d" in your makefiles right after the "strip", where relevant... > -- > -- uunet!sugar!karl > -- Usenet access: (713) 438-5018 Hey, before you strip it use cprs(1) to remove duplicate structure and union references. cprs oldbin newbin Enjoy, Glenn glenn@qed.physics.su.oz.au -- Glenn Geers | "So when it's over, we're back to people. Department of Theoretical Physics | Just to prove that human touch can have The University of Sydney | no equal." Sydney NSW 2006 Australia | - Basia Trzetrzelewska, 'Prime Time TV'