Using CPUID opcode on macOS
The source code on the Wikipedia entry for CPUID will not work if you want to build a 64bit Mach-O file. This is a fork of that code to make it build/function on macOS
I built this with GCC as the C library is required for printf
.
gcc -arch x86_64 -e _main cpuid.s -o cpuid