mcpu and mtune gcc options

I am setting up a cross compiler toolchain for a TX2. GCC allows you to specify -mtune=cortex-a57 to optimize for the a57 cpu. How does that affect the Denver cores of the TX2? What’s the best set of options to use for -mtune, -march, -mcpu to have gcc generate the best code for the TX2?

Hi StrikeEagleIII,

I’ll check it and then get back to you. Thanks!


Please also refer following link.


The referenced link only provides mcpu and march values, however mcpu is deprecated and mtune is not provided. Any recommendations on optimal value for that?

Disregard. Answered my own question. Want -mtune=cortex-a57.

1 Like