From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Sizes of executables Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <48l9as4o2sgmueknfcqsiqtsasvdupm684@4ax.com> References: <880rb7$2368$1 AT gavrilo DOT mtu DOT ru> <881q0c$2n9n$1 AT gavrilo DOT mtu DOT ru> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 46 X-Trace: +rvUKlmp6oQzwu36LnKCDXMVlk3LtFxLzbQwC+A/8CDvRxZec6K3iyFkeNhou5iIZp0utv3dl06/!cmF2Ctix2l++KRAEIIy43PZKGeBU+uSlFAG1hsCrJ+MasVjvvSfnYyIv87an7DB7JkRQH9HLi907!E2UmQ0k= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 12 Feb 2000 03:43:01 GMT Distribution: world Date: Sat, 12 Feb 2000 03:43:01 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. >>2. You forgot to strip out debugging information. >> strip foo.exe > I had done it. > >>3. You forgot to compress the EXE (also strips it.) >> http://upx.tsx.org/ > By my experience(not so big), UPX is not very safe program Recent versions are very stable; however, there is still ABSOLUTELY NO WARRANTY. >and, again, I had compared DJGPP-executables with uncompressed >output of other compilers. Other compilers that produce 32-bit protected mode DOS apps that don't need an external extender other than what is built into Windows, DOSEMU, and DR DOS and is a mere 20K on plain DOS? > Just for information, small program ~2000 lines, optimized for speed: > BorlandC v5.01 44KB > VisualC v.6.0(no extender) 44KB > WatcomC v10.6 51KB DOS4GW.EXE 250 some K (does not work if compressed with UPX) > IntelC v.4.0(no extender) 40KB > DJGPP v2.03 102KB CWSDPMI.EXE 20 some K (compressed with UPX and still works) 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. -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html