2 ms·
> The real solution ... Is the "real solution" a case of letting "the perfect" get in the way of "good enough" (sic)?
by justinclift 4y ago
> The real solution ...
Is the "real solution" a case of letting "the perfect" get in the way of "good enough" (sic)?
- Dylan16807 4y agoJust 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".