FR3141 n00b
Joined: 13 Jan 2018 Posts: 39
|
Posted: Mon Apr 09, 2018 8:53 am Post subject: GCC Misreports L2 Cache Size |
|
|
The "-march=native" flag of GCC on my system, which has a Haswell CPU, will report an L2 cache size of 8192 kilobytes:
Code: | echo | gcc -### -E - -march=native
...
--param "l2-cache-size=8192"
...
|
But this is actually the L3 cache size. On a Haswell CPU the L2 cache size is 256 kilobytes.
What is the reason for this misreport? I've searched for reports on this issue but found none. Does GCC refer to "L3" as "L2?"
I ask this question because it may possibly have an effect on GCC cache optimization. |
|