汇编格式
求助汇编格式
int b;
int a[10];
b=1;
a[b+1]=0;
上面的c语言代码用gcc编译生成的汇编码如下:
movl $1, -12(%ebp)
movl -12(%ebp), %eax
movl $0, -68(%ebp,%eax,4)
movl $1, %eax
请问这个“$0, -68(%ebp,%eax,4)”是什么意思?
谢谢
------解决方案--------------------
mov dword ptr [ebp+eax*4-68],0
int b;
int a[10];
b=1;
a[b+1]=0;
上面的c语言代码用gcc编译生成的汇编码如下:
movl $1, -12(%ebp)
movl -12(%ebp), %eax
movl $0, -68(%ebp,%eax,4)
movl $1, %eax
请问这个“$0, -68(%ebp,%eax,4)”是什么意思?
谢谢
------解决方案--------------------
mov dword ptr [ebp+eax*4-68],0