看板 C_and_CPP 關於我們 聯絡資訊
https://i.imgur.com/9YfGOAs.jpg
result 不是存在%eax裡面嗎 怎麼他迴圈內部算的卻是加進%rax 想問為什麼這部分沒有統一 ---- Sent from BePTT -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.143.86.237 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1636011750.A.7A9.html
tomsawyer: short沒差吧? 11/04 15:49
pponywong: rax=64 bits eax 11/04 16:13
pponywong: 以前dos時代是 ax, 32位元變成eax, 64位元又變成rax 11/04 16:14
pponywong: 你可以用 gcc -S -m32 產生32位元的組合語言 11/04 16:16