AVR 不同优化级别说明

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

-O0 No optimization. This is the same as not specifying any optimization. 

-O1 Optimize. Reduces code size and execution time without performing any optimizations that take a great deal of compilation time. 

-O2 Optimize even more. avr-gcc performs almost all optimizations that don't involve a space-time tradeoff. 

-O3 Optimize yet more. This level performs all optimizations at -O2 along with -finline-functions and - frename-registers. 

-Os Optimize for size. Enables all -O2 optimizations that don't increase code size. It also performs further optimizations designed to reduce code size.

转载于:https://my.oschina.net/jingshishengxu/blog/160116

你可能感兴趣的:(AVR 不同优化级别说明)