Using ‘cpuid’ instructions to get cache line size

This is program demonstrates how to use ‘cpuid’ assembly instruction on x86 to retrieve cache line size. This is done in c++ and it uses the inline assembly to execute the instructions, compiled with gcc on win32. Really we are only interested in Cache line information which can be found using 0x80000006 code and its …

Using ‘cpuid’ instructions to get cache line size Read More »