Quantcast
Channel: 中级
Viewing all articles
Browse latest Browse all 669

Intel® C++ Compiler 15.0 for Linux Sets “-ansi-alias” by Default, Noncompliant Code May Fail

$
0
0

Beginning with version 15.0, the Intel® C++ Compiler for Linux enables -ansi-alias by default at optimization level 2 (-O2). The -ansi-alias option indicates that the code complies with ANSI aliasing rules.

If the application code adheres to ANSI aliasing rules, this change allows the compiler to make aggressive optimizations. The effect of this change on runtime performance depends on the application, the optimization methods supported by the compiler, and the compiler switches used.

If the application code does not follow ANSI aliasing rules, then this option may cause compile time or runtime failures. 

Use the –fno-ansi-alias option to disable this behavior. Note that -fstrict-aliasing has the same behavior as -ansi-alias, and -fno-strict-aliasing will negate both options as well. For more information, please refer to the User and Reference Guide for the Intel® C++ Compiler 15.0.

  • 开发人员
  • Linux*
  • C/C++
  • 中级
  • 英特尔® C++ 编译器
  • 英特尔® 集成众核架构
  • 优化
  • 矢量化
  • URL
  • 编译器主题
  • 主题专区: 

    IDZone

    Viewing all articles
    Browse latest Browse all 669

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>