【问题标题】:What is the equivalent of GCC's fno-strict-aliasing flag for ICC, the Intel Compiler?什么是 GCC 的 fno-strict-aliasing 标志的等价物 ICC,英特尔编译器?
【发布时间】:2011-03-11 21:23:40
【问题描述】:

英特尔编译器似乎逐字接受 -fno-strict-aliasing 标志,但我没有看到任何地方记录了该行为,并且该标志可能会被忽略。 -no-ansi-alias 等标志看起来相关,但我想确保我指定了正确的行为。

【问题讨论】:

    标签: gcc compiler-construction intel icc compiler-flags


    【解决方案1】:

    ICC 接受大多数 gcc 开关并使用它们做正确的事情。如果你想使用 ICC 特定的开关,那么我认为这可能是一个:

    -[no-]ansi-alias
              enable/disable(DEFAULT) use of ANSI aliasing rules optimizations;
              user asserts that the program adheres to these rules
    

    【讨论】:

      【解决方案2】:

      当这些回复发布时,英特尔编译器实际上确实默认为 -fno-ansi-alias,但它已经改变了(至少对于 linux)。

      【讨论】:

        猜你喜欢
        • 2015-09-14
        • 1970-01-01
        • 2013-11-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-04-04
        • 2021-01-31
        • 1970-01-01
        相关资源
        最近更新 更多