X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 01 Mar 2005 01:12:22 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c51deb$Blat.v2.4$24c90100@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <1109628434.833975.185760@o13g2000cwo.googlegroups.com> (ahmadwaris AT hotmail DOT com) Subject: Re: Program crashes on reaching a certain size References: <1109628434 DOT 833975 DOT 185760 AT o13g2000cwo DOT googlegroups DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "arizvi" > Date: 28 Feb 2005 14:07:14 -0800 > > Can anyone tell me how to reduce application size of a Turbovision > program compiled with djgpp. A medium sized TV application easily > becomes 1MB in size, and I need my executable to be much less in size. Did you strip the executable, or does it still include debug info? > The reason I need this is that whenever I reach a certain line of code, > my program crashes. I have identified the exact line in my code on > reaching which the program crashed. This line of code itself is not the > culprit (no illegal memory access) because when I reduce the > application size by deleting the lines before this line, the > application does not crash. If that's the reason, I'd suggest to debug the cause of the crashes, not to sweep the bug under the carpet. I'm sure you have a real bug on your hand, and even if you make the program smaller somehow, that bug will eventually raise its ugly head.