![]() |
Why do you use -O2/-Os when -O3 performs better optimization? |
Previous | Miscellaneous | Next |
Q: | I wonder why you put '-Os' as a default optimization option in the compiler. '-O3' will perform better optimization... |
A: | Yes, but '-O3' produces bigger output than '-Os', because it performs loop unrolling and inlining of "short-enough" functions... |