Re: -Os versus -O2

Jeff Garzik
2007-06-25T01:34:49Z

Adrian Bunk wrote:
> The interesting questions are:
> Does -Os still sometimes generate faster code with gcc 4.2?
> If yes, why?

Smaller code can mean fewer page faults, fewer cache invalidations, etc.

It's not just a matter of compiler code generation, gotta look at the
whole picture.

Jeff