Mail Archives: djgpp/1995/01/13/13:24:29
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 -