Mail Archives: djgpp/1998/04/03/22:03:46
G DOT DegliEsposti AT ads DOT it wrote:
>
> If this can explain why use -O2 in stead of -O3, I agree
> with you on one point: why -O1 in stead of -O2 ?
> Maybe the switch is available for backward compatibility ?
Each of the optimization levels takes progressively more time to
compile, and -O2 doesn't increase speed over -O1 by as much as -O1
increases speed over non-optimized code. For myself, I always use -O2
in production code. The various options exist for flexibility. :-)
--
---------------------------------------------------------------------
| John M. Aldrich | "A committee is a life form with six |
| aka Fighteer I | or more legs and no brain." |
| mailto:fighteer AT cs DOT com | |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -