汇编语法 .space 含义
Assembly syntax .space meaning
readings: .space n, 0x0
谁能告诉我上面的代码是什么意思?
根据我的理解,应该保留一个地址space,大小为n
,那么0x0
呢?
0x0
是用来填充那些 n
字节的值。它实际上是多余的,因为 0 是默认值。
引自 GNU 汇编程序手册:
.space size , fill
This directive emits size
bytes, each of value fill
. Both size
and fill
are absolute expressions. If the comma and fill
are omitted, fill
is assumed to be zero.
readings: .space n, 0x0
谁能告诉我上面的代码是什么意思?
根据我的理解,应该保留一个地址space,大小为n
,那么0x0
呢?
0x0
是用来填充那些 n
字节的值。它实际上是多余的,因为 0 是默认值。
引自 GNU 汇编程序手册:
.space size , fill
This directive emits
size
bytes, each of valuefill
. Bothsize
andfill
are absolute expressions. If the comma andfill
are omitted,fill
is assumed to be zero.