X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: Program crashes on reaching a certain size Date: Tue, 01 Mar 2005 21:21:54 +1100 Organization: HOME Message-ID: References: <1109628434 DOT 833975 DOT 185760 AT o13g2000cwo DOT googlegroups DOT com> <01c51deb$Blat.v2.4$24c90100 AT zahav DOT net DOT il> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 24 NNTP-Posting-Host: 220.233.15.233 X-Trace: 1109672514 un-2park-reader-02.sydney.pipenetworks.com.au 27614 220.233.15.233:1161 X-Complaints-To: Abuse, including message IDs to abuse AT pipenetworks DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >> 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. I suggest you ensure that you have the latest TV used in the Rihde 1.5.01, this way there will be less bugs in it. Andrew