Does anyone know the equivalent flags (both general optimization or arm
specific flags) which -O1 or -O2 uses? I see different behavior when I turn
on -O1 or -O2 then when optimizations are off and I am trying to determine
which optimization combination is actually being used. I have tried
manually setting the flags but my executables are not the same as if I
use -O1 or -O2.
I am compiling for gcc_ntoarmle (xscale actually).
Here are the flags I manually tried for -O1 and -O2 from GNUDevelopment
Tools doc:
"-O1 When you specify -O, the compiler turns on -fthr ead-jumps
and -fdefer -pop on all machines. The compiler turns on -fdelay ed-branch on
machines that have delay slots, and -f omit-frame-pointer on machines that
can support debugging even without a frame pointer. On some machines the
compiler also turns on other flags.
-O2 turns on all optional optimizations except for loop unrolling, function
inlining, and register renaming. It also turns on the -ff orce-mem option on
all machines and frame pointer elimination on machines where doing so does
not interfere with debugging."
thanks
nick