This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: List of CPU architecture-specific macros?


On 2017/2/13 9:59, Jeffrey Walton wrote:
For x86 machines, you often want to use 'gcc -march=native -dM -E
</dev/null | sort' (or similar). The '-march=native' is important to
get most of the defines for the native machine.
I know a few of them and am wondering whether they are subject to change in future releases.

I can only say "most of the defines" because I know some of them are
omitted, like __MOVBE__, even when the processor supports it. To see
__MOVBE__ in the list, yo have to check /proc/cpuinfo and then add
-mmovbe if the cpu feature flag is set.
Good to know. Thank you.

--
Best regards,
LH_Mouse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]