Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between -O2 and -O6 optimizations ?

difference optimizations
0
Posted

What is the difference between -O2 and -O6 optimizations ?

0

Ans: Nothing at present. If you look at the source code for GCC (eww! yuck!) with an i386/i486 host/target, you will see that -Ox for x>=2 does the same thing. In fact it is a bad thing to use x>2 in your Makefiles, because if GCC implements -O3 on Intel targets in the future, it may be an optimization that breaks your code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123