slnc wrote:
Hi John,
Thank you but -O0 makes no difference.
That's what he just said. If you use -O0 (the implied default) none of
the optimizations are done. Use -O1 (or -O2 or -O3) if you want
optimizations done.
David Daney
gcc -c -g -O0 -fdefer-pop -fdelayed-branch -fguess-branch-probability
-fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce
-ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra
-ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time
-fmerge-constants main.c
(those are all gcc 4.2.4 optimization flags for level -O1 according to
the docs) generates the same unoptimized code. Changing -O0 with -O1
generates the optimized version.
John (Eljay) Love-Jensen wrote:
Hi Juan,
If you are not optimizing (-O0), the optimization -f flags have no
effect.
HTH,
--Eljay