Introduction - If you have any usage issues, please Google them yourself
Written in assembly language a cpuid function, and then adjust the linker configuration, call the function in the C language. 2. Use inline assembly call CPUID instruction. 3. Use the compiler to provide the Intrinsics functions to call CPUID platform-specific instructions. We are generally preferred to use three kinds of approach, less code, readable, compiled simple maintenance. The VC (VC2005 or higher) the the statement " intrin.h" __cpuid function. When the compiler Intrinsics function, only the previous two.