3 ms·
-march=native implies -mtune=native. You can say -march=native -mtune=sandybridge, but there would be no point. You can say -march=sandybridge -mtune=native,
by ncmncm 7y ago
-march=native implies -mtune=native.
You can say -march=native -mtune=sandybridge, but there would be no point.
You can say -march=sandybridge -mtune=native, usefully. It might go slower on a real sandybridge than if tuned for it, but would still work, and would go as fast as the smaller instruction mix allows on your build machine.
- inetknght 7y agoI know this. I don't care. I use `-march-native -mtune=native` specifically to point other developers on the team to the two relevant compiler options. And if they don't look, nothing's lost.