打印
[技术问题解答]

CW10.6代码2级优化问题

[复制链接]
1128|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
moyou3344|  楼主 | 2015-5-5 12:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
moyou3344|  楼主 | 2015-5-5 15:31 | 只看该作者
有没有关于CW优化的资料推荐啊,在线等啊!

使用特权

评论回复
板凳
FSL_TICS_Jeremy| | 2015-5-6 09:01 | 只看该作者

降低整体优化级别
或者代码里指定哪些函数不优化

使用特权

评论回复
地板
moyou3344|  楼主 | 2015-5-6 17:43 | 只看该作者
FSL_TICS_Jeremy 发表于 2015-5-6 09:01
降低整体优化级别
或者代码里指定哪些函数不优化

你好,我想请教一下,2级优化主要优化的内容有哪些呢?

使用特权

评论回复
5
FSL_TICS_LY| | 2015-5-7 11:28 | 只看该作者
None (-O0) - Disable optimizations. This setting is equivalent to specifying the -O0 command-line option. The compiler generates unoptimized, linear assembly-language code.
Optimize (-O1) - The compiler performs all target-independent (that is, non-parallelized) optimizations, such as function inlining. This setting is equivalent to specifying the -O1 command-line option. The compiler omits all target-specific optimizations and generates linear assembly-language code.
Optimize more (-O2) - The compiler performs all optimizations (both target-independent and target-specific). This setting is equivalent to specifying the -O2 command-line option. The compiler outputs optimized, non-linear, parallelized assembly-language code.
Optimize most (-O3)  - The compiler performs all the level 2 optimizations, then the low-level optimizer performs global-algorithm register allocation. This setting is equivalent to specifying the -O3 command-line option. At this optimization level, the compiler generates code that is usually faster than the code generated from level 2 optimizations.
Optimize for size (-Os) - Optimize for size.  -Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimizations designed to reduce code size. This setting is equivalent to specifying the - Os command-line option

使用特权

评论回复
6
FSL_TICS_Jeremy| | 2015-6-1 11:36 | 只看该作者
   非常感谢你关于IDE的技术问题。如果你没有其他问题,我们将此帖默认为已解决.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

7

主题

28

帖子

0

粉丝