Currently we compile and run code on same hardware, so -march=native
flag is used.
We are going to keep running on this hardware but compile on different architecture. So I need to replace native
with whatever it is equivalent to on current hardware.
Is there a way to get gcc
to report what native
is equivalent to on particular hardware?
Yes, you can run the command
gcc -march=native -Q --help=target
to see the flags applied, including the resolved -march flag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With