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?
How to see which flags -march=native will activate
compiler-flagscompiler-optimizationg++gcc
Related Topic
- Ios – Swift 3: Resizing UICollectionViewCell programmatically causes cells to overlap
- C++ – Undefined reference to vtable
- Why doesn’t GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)
- C++ – Why is the program slow when looping over exactly 8192 elements
- C++ – Why does GCC generate 15-20% faster code if I optimize for size instead of speed
- Swift Beta performance: sorting arrays
- C# – System.Windows.Application.GetResourceStream returns null
Best Answer
You can use the
-Q --help=target
options:The
-v
option may also be of use.You can see the documentation on the
--help
option here.