Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的课程笔记中,我得到了以下信息:
C:
thisthread.id = 4711;
汇编器:
.text .align 2 movia r8,thisthread movi r9,4711 stw r9,4(r8) # id after sp that takes 4 bytes
但是 sp 不占用 4 位吗?我认为偏移量是按位指定的,而不是按字节指定的。我弄错了吗?
You are mistaken. The offset is indeed in bytes.