Re:Ubuntu 24.04 LTS will enable frame pointers by default
by peterfirefly on Wednesday December 13, 2023 @06:11PM
(#38635542)
All AMD64 CPUs support at least SSE2 which means they have 16 (not 15 or 14!) XMM registers they can spill to. This is just as fast as a move between two GPRs.
If the compiler could use the hidden registers, then the cpu would know that it could run this instruction ahead of time.
It is probably not worth it, since it adds a lot of complexity to an already complex system, which is why it isn’t done.