
24 Mar
2011
24 Mar
'11
10:32 a.m.
On 24/03/2011 01:16, Gruenke, Matt wrote:
cpuid? It seems to me that the *only* thing that should determine how the program gets compiled is the compiler flags, since the target platform might have either less or more capability than the build machine. I've experienced both cases, firsthand.
GCC will define the following preprocessor macros, depending on which code generation flags you specify:
__MMX__ __SSE__ __SSE2__ __SSE3__ __SSSE3__ __SSE4A__ __SSE4_1__ __SSE4_2__ __AES__ __PCLMUL__ __AVX__
But how do you know what flags to pass to GCC in the first place?