From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp exe file size question Date: 2 May 1997 10:44:12 GMT Organization: Oxford University, England Lines: 22 Message-ID: <5kcghs$8qa@news.ox.ac.uk> References: <5kbddj$m63 AT usenet81 DOT supernews DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mike (mike AT itlnet DOT net) wrote: : I've recently started using djgpp (yes, I've read the FAQs). It works fine, : but I've noticed that my exe file sizes seem to be very large. Much larger than : it would seem normal, and larger than the same source file compiled by another : compiler. : For instance, I recently compiled a short routine using Borland Turbo C++ : and it came out to about 15k. I then compiled the same routine with djgpp and : it came out to almost 144k! : Does anyone know why this might be happening? And, more importantly, how I : might be able to decrease my exe file size? There's a lot of debugging information in the file. Try either running `strip' on the executable, or adding `-s' to the gcc/gxx command line when you are linking your program. However, you are compiling a very short program, and it isn't really fair to make the comparison on such a piece of code. For an accurate comparison you should use a longer program. -- George Foot Merton College, Oxford