如何查看哪些标志 -march=native 将激活? [英] How to see which flags -march=native will activate?

查看:20
本文介绍了如何查看哪些标志 -march=native 将激活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 GCC 4.3 编译我的 C++ 应用程序.我使用 -march=native 而不是手动选择优化标志,理论上应该添加适用于我正在编译的硬件的所有优化标志.但是我如何检查它实际使用了哪些标志?

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?

推荐答案

您可以使用 -Q --help=target 选项:

gcc -march=native -Q --help=target ...

-v 选项也可能有用.

您可以查看有关 --help 选项 此处.

You can see the documentation on the --help option here.

这篇关于如何查看哪些标志 -march=native 将激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆