Apple's -fast option for gcc

Bob Rossi bob@brasko.net
Wed Sep 17 18:29:00 GMT 2003


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



More information about the Gcc mailing list