From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: Sizes of executables Date: Thu, 10 Feb 2000 21:17:02 +0000 Organization: Customer of Planet Online Lines: 16 Message-ID: References: NNTP-Posting-Host: modem-175.beryllium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 950217877 22910 62.136.3.175 (10 Feb 2000 21:24:37 GMT) NNTP-Posting-Date: 10 Feb 2000 21:24:37 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com ki99_jan AT k DOT kth DOT se (Jonas Alin) wrote: > Hello > I have some problems in keeping down the sizes of the executables when I > link with djgpp. There just MUST be a way to strip them down because the > code of the object files before linking is only a small fraction of the > huge exe's I get. There seem to be a whole lot of unused code in the > files. Does anyone have an answer to this? I am a rather newbie at djgpp It's all in the FAQ, section 8.14 "Why are DJGPP .exe files so large?" Basically, compile with -O2 and link with -s. I don't know why the FAQ does not suggest -Os which would seem more appropriate in this situation. That is what I use, but I have not really tested to see the difference it makes.