【发布时间】:2017-02-11 05:29:07
【问题描述】:
at&t 语法中 this 的等价物是什么?我似乎无法通过谷歌找到任何东西。
struc node
info: resd 1
next: resd 1
endstruc
【问题讨论】:
at&t 语法中 this 的等价物是什么?我似乎无法通过谷歌找到任何东西。
struc node
info: resd 1
next: resd 1
endstruc
【问题讨论】:
GNU 汇编器不支持任何类似的东西。你可以做的最接近的事情是:
.set note_info, 0
.set note_next, 4
.set note_size, 8
您可以在如下语句中使用这些符号:
head:
.space note_size
movl $0, head + note_info
mov head + note_next, %esi
mov note_next(%esi), %esi
【讨论】:
.struct 指令来帮助生成绝对偏移量。 linux.web.cern.ch/linux/scientific4/docs/rhel-as-en-4/…