mtune
mtune is a compiler option used by GCC and compatible toolchains to optimize generated code for a specific CPU or microarchitecture without enabling new instructions. It influences code generation decisions such as instruction scheduling and register allocation, applying microarchitectural considerations within the constraints of the selected instruction set architecture.
Usage and interaction: mtune is typically used in combination with -march, which selects the ISA, while -mtune
Notes and limitations: -mtune does not enable new instructions; it adjusts optimization strategies to suit the
Overview: In practice, developers use -mtune to extract additional performance from existing hardware while preserving compatibility
See also: -march, -mcpu, -mtune in the GCC manual, GCC, Clang.