delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/02/28/18:15:03

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" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-ID: <01c51deb$Blat.v2.4$24c90100@zahav.net.il>
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

> From: "arizvi" <ahmadwaris AT hotmail DOT com>
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019