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?
-march=native
You can use the -Q --help=target options:
-Q --help=target
gcc -march=native -Q --help=target ...
The -v option may also be of use.
-v
You can see the documentation on the --help option here.
--help
1.4m articles
1.4m replys
5 comments
56.9k users