www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/13/13:24:29

Date: Fri, 13 Jan 95 12:24:49 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: gcc = gcc -O2 ?

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.

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?

DJ


- Raw text -


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