Guest User

Untitled

a guest
Jun 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "test.c"
  2.     .text
  3.     .globl  function
  4.     .type   function, @function
  5. function:
  6. .LFB0:
  7.     .cfi_startproc
  8.     pushl   %ebp
  9.     .cfi_def_cfa_offset 8
  10.     .cfi_offset 5, -8
  11.     movl    %esp, %ebp
  12.     .cfi_def_cfa_register 5
  13.     subl    $32, %esp
  14.     leal    -9(%ebp), %eax
  15.     addl    $13, %eax
  16.     movl    %eax, -4(%ebp)
  17.     movl    -4(%ebp), %eax
  18.     movl    (%eax), %eax
  19.     leal    8(%eax), %edx
  20.     movl    -4(%ebp), %eax
  21.     movl    %edx, (%eax)
  22.     leave
  23.     .cfi_restore 5
  24.     .cfi_def_cfa 4, 4
  25.     ret
  26.     .cfi_endproc
  27. .LFE0:
  28.     .size   function, .-function
  29.     .section    .rodata
  30. .LC0:
  31.     .string "%d\n"
  32.     .text
  33.     .globl  main
  34.     .type   main, @function
  35. main:
  36. .LFB1:
  37.     .cfi_startproc
  38.     pushl   %ebp
  39.     .cfi_def_cfa_offset 8
  40.     .cfi_offset 5, -8
  41.     movl    %esp, %ebp
  42.     .cfi_def_cfa_register 5
  43.     andl    $-16, %esp
  44.     subl    $32, %esp
  45.     movl    $0, 28(%esp)
  46.     movl    $3, 8(%esp)
  47.     movl    $2, 4(%esp)
  48.     movl    $1, (%esp)
  49.     call    function
  50.     movl    $1, 28(%esp)
  51.     movl    28(%esp), %eax
  52.     movl    %eax, 4(%esp)
  53.     movl    $.LC0, (%esp)
  54.     call    printf
  55.     leave
  56.     .cfi_restore 5
  57.     .cfi_def_cfa 4, 4
  58.     ret
  59.     .cfi_endproc
  60. .LFE1:
  61.     .size   main, .-main
  62.     .ident  "GCC: (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1"
  63.     .section    .note.GNU-stack,"",@progbits
Add Comment
Please, Sign In to add comment