You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/05-控制流/02-函数.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,6 +246,58 @@ foo:
246
246
247
247
我们可以发现,在结尾,使用的是`jmp`而不是`call`,所以从高级语言的角度,就可以看作其将尾部的调用变成了循环。并且,有两个操作:`pushq %rax`和`popq %rax`。这两个操作只是为了栈对齐,具体可以参考stack overflow上的回答[Why does this function push RAX to the stack as the first operation?](https://stackoverflow.com/a/45823778/10005095)。
0 commit comments