From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Sizes of executables Date: Sun, 13 Feb 2000 09:44:22 +0200 Organization: NetVision Israel Lines: 36 Message-ID: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 950428068 7267 199.203.121.2 (13 Feb 2000 07:47:48 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 13 Feb 2000 07:47:48 GMT X-Sender: eliz AT is In-Reply-To: <48l9as4o2sgmueknfcqsiqtsasvdupm684@4ax.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 12 Feb 2000, Damian Yerrick wrote: > On Fri, 11 Feb 2000 21:28:01 +0300, "Dmitry Shkarin" > wrote: > > > Hi, Damian! > >>1. Each DJGPP program has a mini-extender built in that goes to 32-bit > >>protected mode. This extender takes space. > > Other compilers have extender code too. > > Extender that lives in some bloated DOS4GW.EXE file. This extender thing is a non-issue: the one linked into DJGPP programs is only 2K. Also, if you count DOS4GW, you should for fairness count CWSDPMI as well. The real bloat, after stripping the executable, comes from the DJGPP library and the GNU C++ library. The former is larger than a typical DOS library because it offers much more functionality (see the section "Features" in the DJGPP Knowledge Base for details). I don't know much about the C++ library, but I suspect that at least some of the compared compilers don't support some of the latest C++ bells and whistles (e.g., Watcom 10.x is quite old. Conclusion: don't write hello world programs with a C++ compiler, or if you do, don't treat the executable size too seriously. > Also, "optimized for speed" in DJGPP bloats programs because GCC makes > programs run wicked fast by using all the dirty alignment tricks of > the i?86 trade. That's also a non-issue, mostly: the bloat due to this is less than 10%, in my experience.