This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Apple's -fast option for gcc


On Wed, Sep 17, 2003 at 02:16:40PM -0400, Douglas Kilpatrick wrote:
> 
> > -O0 can debug it, -O1 fast, -O2 good, -Os small, -O3 big, maybe
> > faster.
> 
> As a developer, what I would generally prefer is
> 
> -O0 fast compile, completely debuggable
> -O1 slower compile, better code
> -O2 slow compile, good code.
> -ON (N>2) Really Slow comple, increasingly good code.

It seems as if you wouldn't really want a slow compile. Its just the
side effect of good code. So it boils down to

-O0 fast compile, completely debuggable
-O1 better code
-O2 good code.
-ON increasingly good code.

Bob Rossi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]