-march=native 到底是做什么的?
Gentoo 维基告诉我以下内容:
警告:GCC 4.2 及更高版本支持 -march=本地。 -march=native 应用 -march 之外的其他设置, 特定于您的 CPU。除非你有 不这样做的具体原因(例如 distcc 交叉编译),你可能应该 使用 -march=native,而不是 下面列出的任何内容。
这些附加设置是什么?
Gentoo Wiki told me the following:
Warning: GCC 4.2 and above support
-march=native. -march=native applies additional settings beyond -march,
specific to your CPU. Unless you have
a specific reason not to (e.g. distcc
cross-compiling), you should probably
be using -march=native, rather than
anything listed below.
What are those additional settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系。
我开始非常喜欢这个选项。
-mcx16
和-msahf
是 gcc 现在可以使用的两个附加 CPU 指令,这在早期的 Core2 中不可用。Nevermind.
I'm starting to like this option a lot.
-mcx16
and-msahf
are two additional CPU instructions gcc can now use, which weren't available in earlier Core2's.