Date: Fri, 13 Jan 1995 15:20:55 -0500 (EST) From: Ed Phillips To: DJGPP mailing list 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 */ /****************************************************************************/