This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

About -On optimization flag


Hello,
Using the -On optimization flag, what is the greatest "n" value that
can I use? In the gcc manual (4.5.1, 4.4.5, 3.4.6) the greatest level
documented is -O3
(http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Optimize-Options.html#Optimize-Options),
but if you tray for example with -O4, -O5, -O9, etc. no warning nor
error is emitted. I've asket some people and all says that -O4 and -O5
are valid and higher level optimizators than the documented -O3.
What is the correct answer? Is -O3 the higher optimization level as is
documented in the manual or -O4, -O5 performs additional
optimizations? If -O3 is the higher why the use of -O4, -O5 not emits
a warning or error?

Thanks

-- 
*****************************************
José Luis García Pallero
jgpallero@gmail.com
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]