【问题标题】:What assembly language is this? [closed]这是什么汇编语言? [关闭]
【发布时间】:2013-03-10 01:29:30
【问题描述】:

这是什么汇编语言?

(gdb) disass bar
Dump of assembler code for function bar:
0x08048374 <bar+0>:  push   %ebp
0x08048375 <bar+1>:  mov    %esp,%ebp
0x08048377 <bar+3>:  sub    $0x10,%esp
0x0804837a <bar+6>:  mov    0x8(%ebp),%eax
0x0804837d <bar+9>:  add    $0x1,%eax
0x08048380 <bar+12>: mov    %eax,-0x4(%ebp)
0x08048383 <bar+15>: mov    -0x4(%ebp),%eax
0x08048386 <bar+18>: leave  
0x08048387 <bar+19>: ret    
End of assembler dump.
(gdb)

【问题讨论】:

  • 如果你可以在上面运行 GDB,为什么不能在上面运行file 让系统告诉你?

标签: linux gcc assembly gdb


【解决方案1】:

这显然是 AT&T syntax 中的 32 位 x86 程序集。

【讨论】: