3 ms·
> you just add a record whenever you do the jump, exactly like what you’re describing with inlined calls Add another record where? On some kind of stack of rec
by chrisseaton 6y ago
> you just add a record whenever you do the jump, exactly like what you’re describing with inlined calls
Add another record where? On some kind of stack of records from calls? That will grow linearly with the number of calls? So that's a call-stack is it? The whole point of TCO was to eliminate the stack and you've re-invented it there! If you have an infinite tail-call (like a web server accepting requests in a loop) you'll have an infinitely long list of records with your idea.
> It’s certainly not something that is common, or commonly understood as a requirement for optimization.
In many languages (Python, Ruby, Java, etc) they are not debug information - they're part of the program semantics and (from experience!) if you change them you'll break programs.