P
Peter Nilsson
Keith said:Check your compiler's documentation. It's likely that "-O2"
is not the highest optimization level available. (gcc supports
at least "-O3", plus a number of other options for specific
optimizations that aren't necessarily included in "-ON" for
whatever value of N.)
The way I see it, implementations don't have optimisation
levels per se. They simply allow more techniques to be
applied in the hopes of achieving faster code. Optimisation
remains inherently trial and error. So called 'higher' settings
can actually produce _less_ efficient code than 'lower'
settings in some cases.