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.
Run Code Online (Sandbox Code Playgroud)
我的问题是,当没有给出-march选项时,gcc编译的指令(子)集是什么?在webosphere中有很多关于-march和-mtune的相关信息,但我找不到哪个能回答这个简单的问题.它不能是march = native,否则就不可能编译通用分发内核和二进制包.
nos*_*nos 17
编译gcc本身时,可以设置gcc的默认标志.跑:
gcc -Q --help=target
Run Code Online (Sandbox Code Playgroud)
查看计算机上的默认设置.可能它只是x86-64, 即使手册页没有记录为-march-的值
| 归档时间: |
|
| 查看次数: |
4861 次 |
| 最近记录: |