Tomilov Anatoliy
Tomilov Anatoliy

Reputation: 16731

gcc generic march for all the x64 platforms

GCC have -march= and -mtune option as described here. But it is not obvious which of the options to choose for x64 platform as generic one. Say, -mtune= have the generic value, but -march= for x64 have no.

I suspect that -march=nocona (as frequently seen everywhere) or even -march=i686 -m64 is the solution, but I'm not sure.

Upvotes: 15

Views: 15645

Answers (1)

user784668
user784668

Reputation:

The generic x86-64 -march is -march=x86-64.

It is usually the default for GCC targeting x86-64, but that default can be changed at configure time by passing appropriate value to --with-arch.

Upvotes: 19

Related Questions