Mail Archives: djgpp/1998/06/25/06:59:10
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 -