delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/13/16:59:48

Date: Fri, 13 Jan 1995 15:20:55 -0500 (EST)
From: Ed Phillips <flaregun AT udel DOT edu>
To: DJGPP mailing list <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Re: gcc = gcc -O2 ?

On Fri, 13 Jan 1995, DJ Delorie wrote:

> 
> I've been asked whether it would be a Good Thing for "gcc" to default
> to "gcc -O2" rather than "gcc -O0", so that if you didn't specify
> anything, you would get optimization by default.  The reason is that
> so you would, by default, get faster programs and thus better
> benchmarks, at the cost of slower compiles.  You would still be able
> to use "gcc -O0" to shut off optimization.

My vote: gcc = gcc -O0

	I usually like to get my programs working first and then see the 
wonderful speed increase when I do a final compile with -O.  :-)

> 
> This came up because someone thought that most PC compilers, by
> default, optimized, so gcc should also.
> 
> Comments?
> 
> Should -g imply -O0 as the default?
> 

My vote:  -g doesn't imply anything.  Keep -g independent of -O.

/****************************************************************************/
/* Ed Phillips  flaregun AT udel DOT edu              University of Delaware       */
/* Jr Systems Programmer  (302) 831-6082    IT/Network and Systems Services */
/****************************************************************************/


- Raw text -


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