delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/25/06:59:10

Date: Thu, 25 Jun 1998 13:54:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nicolas Blais <eletech AT netrover DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Optimize does not work with Allegro
In-Reply-To: <35919180.58DB8C3B@netrover.com>
Message-ID: <Pine.SUN.3.91.980625135154.27632E-100000@is>
MIME-Version: 1.0

On Wed, 24 Jun 1998, Nicolas Blais wrote:

> Hi, remember that problem with Allegro I had, well I found out that
> using -O3 made it crash.  Without any optimization switches, my program
> works fine.

It is probably some bug in your program that is exposed by compiler 
optimizations.  You need to debug your code at the point of the crash.  
Since GCC allows to compile with both -O3 and -g, you can run the 
optimized code under a debugger and see what goes wrong at the locus of 
the crash.

The crash traceback printed when the program crashes should tell you 
where to start debugging, if you run SYMIFY on it.  (If you don't know 
what SYMIFY is, read section 9.2 of the DJGPP FAQ list, which is 
available as v2/faq210b.zip from the same place you get DJGPP.)

- Raw text -


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