Re: List of CPU architecture-specific macros?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux