作者turbo1 (turbo)
看板Grad-ProbAsk
標題[理工] 計組 p63
時間Mon Dec 2 22:48:53 2019
各位大大你們好
我想請問計組第一章這一題
1.如何判斷$sp每次減幾?
2.為何第二條線畫線那邊需要pointer stack pop 2 items ?
上面fact的部分不是已經有一次pop了嗎?
https://i.imgur.com/wrO5axa.jpg
https://i.imgur.com/Vv9Rdsl.jpg
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.52.66.212 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1575298135.A.01C.html
推 mistel: 1.stack push進兩個word,一個word是caller要存自己之後 12/02 23:10
→ mistel: 要用的引數,另一個word是callee要負責存return address 12/02 23:10
→ mistel: ,雖然是同一個人存但擔當的職責不同 12/02 23:10
→ mistel: 第二條線就要自己trace過才知道了... 12/02 23:10
→ turbo1: 懂了 謝謝m大 12/02 23:34