Choosing the right -march target architecture

Jonathan Wakely jwakely.gcc@gmail.com
Wed Sep 2 10:13:00 GMT 2015


On 2 September 2015 at 08:43, Mason wrote:
> Is there a way to say:
> "Use any instruction available for this uarch, but optimize code
> for this other uarch / class of uarches (mtune=generic)" ??

Yes, just use both -march and -mtune. e.g.

-march=pentium3 -mtune-generic



More information about the Gcc-help mailing list