如何查看哪些标志-march = native会激活? [英] How to see which flags -march=native will activate?
本文介绍了如何查看哪些标志-march = native会激活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用GCC 4.3编译我的C ++应用程序。理论上我应该使用 -march = native
来手动选择优化标志,而不是添加适用于我正在编译的硬件的所有优化标志。但是我怎样才能检查它实际使用的是哪个标志?
-Q - > -help = target
options: gcc -march = native -Q --help = target。 ..
-v
选项也可能
您可以在 - help
选项这里。
I'm compiling my C++ app using GCC 4.3. Instead of manually selecting the optimization flags I'm using -march=native
, which in theory should add all optimization flags applicable to the hardware I'm compiling on. But how can I check which flags is it actually using?
解决方案
You can use the -Q --help=target
options:
gcc -march=native -Q --help=target ...
The -v
option may also be of use.
You can see the documentation on the --help
option here.
这篇关于如何查看哪些标志-march = native会激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文