From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Size of executables... Date: Sun, 01 Mar 1998 09:17:44 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 33 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <34F96E08.30BA57A5@cornell.edu> References: <6d9c67$3or3 AT beaker DOT nit DOT gwu DOT edu> <6db63f$9vn$1 AT news DOT skylink DOT net> NNTP-Posting-Host: cu-dialup-2207.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mr. X wrote: > Yes there is, but I don't remember it off the top of my head. You > can just "strip prgname.exe" on your releases. the command line option happens to be -s, use strip --strip-all progname.exe on the final executable, or read the other options. > Incredibly, it's > normal to have large executables from C. If any function is used, the > whole lib is linked, even if none of the other functions are called. > And, when you explicitly link in other stuff, it links whatever you > tell it to link, never checking if anything is used. DJGPP does this > 'cause GCC does it and GCC does it because the other C compilers do it > and they did it cause K&R did it. So much for progress eh? ;) this is the biggest load of bull i have seen in quite a while. the reasons why djgpp programs produce somewhat larger executables are specified in the faq and in a gazillion previous threads which you can search and read to your heart's content at http://www.delorie.com/djgpp/ linking is done on a module-by-module basis, so it is entirely up to you to determine how finely grained it will be. but then, why would anyone think a Mr. X from Las Vegas would post correct information? -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/