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!

StrikeEagleIII,

Please also refer following link.
https://devtalk.nvidia.com/default/topic/1028179/

Awesome–thanks!

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.
https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/AArch64-Options.html

1 Like