gpt4 book ai didi

gcc - gcc -march选项的默认设置是什么?

转载 作者:行者123 更新时间:2023-12-03 23:35:28 30 4
gpt4 key购买 nike

gcc信息文件在有关x86-64特定标志的部分中说
其他事情:

      There is no `-march=generic' option because `-march'
indicates the instruction set the compiler can use, and there
is no generic instruction set applicable to all processors.
In contrast, `-mtune' indicates the processor (or, in this
case, collection of processors) for which the code is
optimized.


那么我的问题是,gcc会针对哪些指令(子集)进行编译
当没有给出-march选项时?有很多相关信息
关于网络圈中的-march和-mtune,但是我找不到
回答了这个简单的问题。不能前进=本地,否则
不可能编译通用发行内核,并且
二进制包。

最佳答案

编译gcc本身时,可以设置gcc的默认标志。跑:

  gcc -Q --help=target 


查看计算机上的默认值。可能只是 x86-64
即使手册页并未将其记录为-march-的值

关于gcc - gcc -march选项的默认设置是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27786932/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com