delorie.com/archives/browse.cgi | search |
From: | Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> |
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: | <r3a6assbjgn7jvmc710ups09utouuk5gqj@4ax.com> |
References: | <MPG DOT 130d0440d417320b989680 AT news1 DOT telia DOT com> |
NNTP-Posting-Host: | modem-175.beryllium.dialup.pol.co.uk |
Mime-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |