3 ms·
Lots of languages use registers for call and return and have aggressive garbage collection. The techniques for handling this efficiently are well known. Richa
by rwmj 5y ago
Lots of languages use registers for call and return and have aggressive garbage collection. The techniques for handling this efficiently are well known.
Richard Jones [not me! a famous GC researcher with the same name] maintains an excellent list of resources which the golang authors might like to read: https://www.cs.kent.ac.uk/people/staff/rej/gcbib/gcbibA.html https://www.cs.kent.ac.uk/people/staff/rej/gcbib/gcbibA.html
- compiler-guy 5y agoAll true, but Go had previously chosen not to use all that knowledge in favor of simplicity in its calling convention and therefore implementation. But like many systems that did so, real world performance implications end up justifying additional complexity.