3 ms·
Just keeping track of the frame pointer is probably not the perfect. In fact it might be the exact opposite. We have very complicated mechanisms that try to k
by Dylan16807 4y ago
Just keeping track of the frame pointer is probably not the perfect.
In fact it might be the exact opposite. We have very complicated mechanisms that try to keep track of every possible optimization. Maybe that effort is getting in the way of a solution that slightly limits frame pointer optimization but easily figures out the value in all situations.
So because the "perfect" mechanism is having implementation problems, and nobody has tried to make the "good" mechanism, we're stuck with the very mediocre "reserve a register".