Xref: news2.mv.net comp.os.msdos.djgpp:6200 From: flyboy AT ari DOT net (Nathaniel Meo) Newsgroups: comp.os.msdos.djgpp Subject: Re: Size optimizations? Date: Sun, 21 Jul 1996 02:06:12 GMT Organization: ARInternet, Corp. Lines: 22 Message-ID: <4ss3ce$cs2@ari.ari.net> References: <4ss0f2$l79 AT harborside DOT com> NNTP-Posting-Host: flyboy.ari.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp jstev AT gladstone DOT uoregon DOT edu (Josh Stevens) wrote: >Hi... >Sorry if this is in the FAQ, but *I* sure couldn't find it. Are there >any optimizations you guys can suggest that would reduce the size of a >C++ .exe file? The reason I ask is that I'm getting sizes of well >over 1 MB for a relatively simple test program that manipulates and >draws some scaled bitmaps (and has no user interface). Sure, I >expected the .exe to be large -- I'm using STL and lots of inline >functions -- but does it have to be this large? Thanks. Try using -s if your not debugging. This strips symbol information which can take up a third of the EXE at times and makes it a lot smaller. Also get a copy of DJP 1.04 to compress EXE's. It can be found with the DJGPP distribution under v2misc. --- Nathaniel Meo Coordinator of The DJGPP Book Project http://www2.ari.net/flyboy/