Article View: aus.computers.linux
Article #57961Re: Compiling Taylor UUCP 1.05
From: Graham Daveney
Date: Sun, 11 Aug 1996 00:00
Date: Sun, 11 Aug 1996 00:00
34 lines
2159 bytes
2159 bytes
Graham Daveney (daveney@speednet.com.au) wrote: : Mark Levitt (melevitt@syr.edu) wrote: : : On 10 Aug 1996 12:38:37 GMT, daveney@speednet.com.au wrote: : : > With the compile that I just did the uucp binary is 481282 bytes. Crazy ! : : : : Ok, maybe a dumb question, but did you strip the binaries after you : : compiled them? : : : I don't know what stripping is so I will look up in the gcc-FAQ. I think : that I am doing something seriously wrong because I have had binaries that : turned out to be a meg in size, and when I look at the ones that come with the : distribution they were only 200K. : : Maybe its something to do with statically linked, or dynamically linked. After doing some more reading of the marvelous gcc-FAQ file I stumbled upon this section. Also many of the FSF authors believe that we want to debug their programs, and leave the -g option in their Makefiles. The result is that large amounts of debugging symbols are left in and the program is linked statically. Check the Makefile carefully to make sure -g has been removed from either the CFLAGS and/or the LDFLAGS if you are compiling software and you are satisfied with it's operation. I took out the -g switch and the binaries were back to quite a decent size. I think it will be worthwhile to read up on how to strip binaries though. Many Thanks Graham Daveney daveney@speednet.com.au
Technical Details
Message-ID:
<4uk40j$43m@news.mel.aone.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4ubg9n$7nr@news.mel.aone.net.au> <4uhvsd$slt@news.mel.aone.net.au> <slrn50p31n.58.melevitt@dot.syr.edu> <4ujsbt$fqi@news.mel.aone.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,91a7583211ed1a45 X-Google-Attributes: gid1103af,public X-Google-Thread: f9b51,91a7583211ed1a45 X-Google-Attributes: gidf9b51,public X-Google-Thread: 102983,91a7583211ed1a45 X-Google-Attributes: gid102983,public From: daveney@speednet.com.au (Graham Daveney) Subject: Re: Compiling Taylor UUCP 1.05 Date: 1996/08/11 Message-ID: <4uk40j$43m@news.mel.aone.net.au> X-Deja-AN: 173481269 references: <4ubg9n$7nr@news.mel.aone.net.au> <4uhvsd$slt@news.mel.aone.net.au> <slrn50p31n.58.melevitt@dot.syr.edu> <4ujsbt$fqi@news.mel.aone.net.au> organization: Speed Internet Services P/L newsgroups: aus.computers.linux,comp.os.linux.misc,comp.os.linux.setup