ICC(Intel 编译器)的 GCC fno-strict-aliasing 标志相当于什么?
英特尔编译器似乎逐字接受 -fno-strict-aliasing 标志,但我没有在任何地方看到该行为记录,并且该标志可能会被忽略。 -no-ansi-alias 等标志看起来相关,但我想确保我指定了完全正确的行为。
The Intel compiler appears to accept the -fno-strict-aliasing flag verbatim, but I have not seen that behavior documented anywhere, and the flag may be ignored. Flags such as -no-ansi-alias look related, but I want to be sure I specify exactly the right behavior.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ICC 接受大多数 gcc 开关并用它们做正确的事情。如果你想使用 ICC 特定的开关,那么我认为这可能是一个:
ICC accepts most gcc switches and does the right thing with them. If you want to use the ICC-specific switch though then I think this is probably the one:
当这些回复发布时,英特尔编译器实际上默认为 -fno-ansi-alias,但此后它已经发生了变化(至少对于 Linux 而言)。
When these replies were posted, Intel compilers did in fact default to -fno-ansi-alias, but it has since changed (at least for linux).