From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: why exe files so big?? 400k! Date: Wed, 28 Jun 2000 10:43:36 GMT Organization: always disorganized Lines: 25 Message-ID: <3959d6c5.13321954@news.freeserve.net> References: <39596c20 DOT 6769105 AT news DOT m DOT iinet DOT net DOT au> NNTP-Posting-Host: modem-35.antenna-lion.dialup.pol.co.uk X-Trace: newsg2.svr.pol.co.uk 962189017 11414 62.136.223.35 (28 Jun 2000 10:43:37 GMT) NNTP-Posting-Date: 28 Jun 2000 10:43:37 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com bophcore AT hotmail DOT com wrote: > for some reason (probably really simple) DJGPP compiles my executable > files at about 400k (even if they're relly lame ones like adding two > numbers and displaying them to screen, how do I make DJGPP compile to > normal (small) size There are a number of things you can do: (a) Use C instead of C++. (I assume you must be using C++ because I can't imagine how you get such huge executables using C.) (b) Use strip to strip out the debugging info: strip foo.exe (c) Use UPX to compress the executable: upx --best foo.exe For example, I get a 277171-byte Hello World exe using C++. But using C and stripping and UPXing it's only 22564 bytes - a 92% reduction. S.