0
xeon.me · 21d · discuss
I wanted to know how big the return address stack (RAS, Intel calls it the RSB) is on my laptop. It’s an i7-12700H, so it has two kinds of cores: Golden Cove P-cores (cpus 0-11) and Gracemont E-cores (cpus 12-19). Intel doesn’t really publish these numbers anymore for newer cores, so the only way is to measure it. The RAS is a small stack inside the branch predictor. Every call pushes the return address onto it and every ret pops it to guess where it is going back to. If you go deeper than the stack is, the oldest entries...