Cirrus Logic CS485 Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 67
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
CS485G Spring 2015 12
8. Generated x86 assembler (using -O1)
sum:
movl 8(%esp),%eax
addl 4(%esp),%eax
ret
9. Interpretation: x is at 8(%ebp); y is at 4(%ebp); t is in register %eax.
10. Output of objdump:
080483ed <sum>:
80483ed: 8b 44 24 08 mov 0x8(%esp),%eax
80483f1: 03 44 24 04 add 0x4(%esp),%eax
80483f5: c3 ret
11. Same thing with gdb, using command “disassemble sum”:
0x080483ed <+0>: mov 0x8(%esp),%eax
0x080483f1 <+4>: add 0x4(%esp),%eax
0x080483f5 <+8>: ret
12. Same thing with gdb, using command “x/9xb sum”:
0x80483ed <sum>: 0x8b 0x44 0x24 0x08 0x03 0x44 0x24 0x04
0x80483f5 <sum+8>: 0xc3
13. One can even disassemble .EXE files (from Win32 complations) with
objdump
16 IA32 = x86 architecture
1. 32-bit architecture.
2. You can compile for it even on an x86 64 with the -m32 flag.
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 66 67

Comentarios a estos manuales

Sin comentarios