delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/23/03:17:55

Date: Tue, 23 Jun 1998 10:17:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Erik Max Francis <max AT alcyone DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Program Crashes!!! Please help! Memory errors!!!
In-Reply-To: <358F35FE.7E80050C@alcyone.com>
Message-ID: <Pine.SUN.3.91.980623101557.14765E-100000@is>
MIME-Version: 1.0

On Mon, 22 Jun 1998, Erik Max Francis wrote:

> >  - Always compile programs with at least the flags '-Wall' and '-O';
> > the compiler can catch lots of mistakes if you let it.
> 
> The optimization flag -O will catch more mistakes?

Yes, at least with GCC.  Some problems are only diagnosed when the 
compiler performs flow of control analysis, which is only done when you 
request optimizations.  One notable example is the warning about unused 
variables, which is only issued with -O.

- Raw text -


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