适用于所有 x64 平台的 gcc 通用行军 [英] gcc generic march for all the x64 platforms
问题描述
GCC 具有 -march=
和 -mtune
选项,如此处.但是对于 x64 平台选择哪个选项作为通用选项并不明显.比如说,-mtune=
有 generic
值,但是 -march=
对于 x64 没有.
GCC have -march=
and -mtune
option as described here. But it is not obvious which of the options to choose for x64 platform as generic one. Say, -mtune=
have the generic
value, but -march=
for x64 have no.
我怀疑 -march=nocona
(随处可见)甚至 -march=i686 -m64
是解决方案,但我不确定.
I suspect that -march=nocona
(as frequently seen everywhere) or even -march=i686 -m64
is the solution, but I'm not sure.
推荐答案
通用的 x86-64 -march
是 -march=x86-64
.
The generic x86-64 -march
is -march=x86-64
.
它通常是面向 x86-64 的 GCC 的默认设置,但可以在 configure
时通过将适当的值传递给 --with- 来更改该默认值拱形
.
It is usually the default for GCC targeting x86-64, but that default can be changed at configure
time by passing appropriate value to --with-arch
.
这篇关于适用于所有 x64 平台的 gcc 通用行军的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!