I\'d like my program to read the cache line size of the CPU it\'s running on in C++.
I know that this can\'t be done portably, so I will need a solution for Linux an
For x86, the CPUID instruction. A quick google search reveals some libraries for win32 and c++. I have used CPUID via inline assembler as well.
Some more info: