TIL: Go not only passes all arguments via the stack on x86-64, it passes *return values* via the stack too. 
-
-
aren't L1 accesses very cheap?
-
Yes, but it adds up. Register allocation still matters a lot.
- 5 more replies
New conversation -
-
-
Oh I see what you're saying -- instead of putting return values in registers. I wonder if there's something about Go's M:N scheduler which makes stack modification more attractive.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.