现在位置: 首页 > -Os
2015年04月22日 工具配置 ⁄ 共 900字 GCC优化选项:一般的文档里不容易找到的-Os已关闭评论 ⁄ 阅读 1,623 次
遍查GCC文档,发现了-O0, -O1, -O2, -O3,就是没有发现-Os。 -Os相当于-O2.5。是使用了所有-O2的优化选项,但又不缩减代码尺寸的方法。 详细的说明如下: Level 2.5 (-Os) The special optimization level (-Os or size) enables all -O2 optimizations that do not increase code size; it puts the emphasis on size over speed. This includes all second-level optimizations, except for the alignment optimizations. The...
阅读全文
×