Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
3 Views

list of flags used in -O2 optimization

I have some problems with O2 optimization flags compiling a commercial software. It works with O1, but gives some errors with O2. I would like to try to add O2 flags one-by-one to see which one fails, but in the documentation I could not find the list of flags contained in O2. Or it cannot be reduced to a number of specific flags?

0 Kudos
2 Replies
Highlighted
Black Belt
3 Views

Try starting from O2 and

Try starting from O2 and removing some optimization e.g. -no-vec -fp-model strict -assume protect_parens

0 Kudos
Highlighted
3 Views

Optimization levels cannot be

Optimization levels cannot be reduced to a set of flags. There are some optimizations that can be turned off with flags, but I'd say most cannot.

Retired 12/31/2016
0 Kudos