www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/23/03:51:06

Date: Sun, 23 Jun 1996 10:40:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: newhallw AT escmail DOT orl DOT mmc DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Compiler crashes when optimization is turned on
In-Reply-To: <9606211948.AA12468@cvfive>
Message-Id: <Pine.SUN.3.91.960623103627.1039N-100000@is>
Mime-Version: 1.0

On Fri, 21 Jun 1996 newhallw AT escmail DOT orl DOT mmc DOT com wrote:

> I've had this problem with DJGPP for some time and was wondering if it has
> been solved...I cannot compile my code with optimization(gcc foo.c -O1)
> because it causes the computer to crash.  Windows 95 comes up with its
> usual cryptic "This program has performed an illegal operation" message
> and after that the DOS prompt hangs when I try to type in a command.

It is not clear from your message whether the compiler crashes while 
compiling your program, or your program crashes when it runs.

> I'm running Windows 95 on a 16 MB 133 Mhz AMD CPU(though the same problem
> occurs w/Pentium-75 and Cyrix 486-40) My code is heavily laden with
> floating point math, void pointers(used to act as pointers to functions)
> and interrupt calls.  The code compiles and runs fine without optimization.

Does it crash under DOS (outside Windows)?

I suggest running the program under a debugger or with debugging print-out
so you could pinpoint the code fragment where it crashes.  You can then
debug that code fragment, or post it here and ask for help. 

- Raw text -


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