m4n71k0r

Untitled

Jul 12th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int _enum()
  2. {
  3.   enum {value = 0x12345678};
  4.  
  5.   return int(value);
  6. }
  7.  
  8. int _const()
  9. {
  10.   const int value = 0x12345678;
  11.  
  12.   return value;
  13. }
  14.  
  15. int main()
  16. {
  17. }
  18.  
  19. x86
  20. --------------------------------------------------------------------------
  21.  
  22.     .file   "/tmp/webcompile/_25782_0.bc"
  23.     .text
  24.     .globl  _enum()
  25.     .align  16, 0x90
  26.     .type   _enum(),@function
  27. _enum():                              # @_enum()
  28. .Ltmp0:
  29.     .cfi_startproc
  30. # BB#0:
  31.     movl    $305419896, %eax        # imm = 0x12345678
  32.     ret
  33. .Ltmp1:
  34.     .size   _enum(), .Ltmp1-_enum()
  35. .Ltmp2:
  36.     .cfi_endproc
  37. .Leh_func_end0:
  38.  
  39.     .globl  _const()
  40.     .align  16, 0x90
  41.     .type   _const(),@function
  42. _const():                             # @_const()
  43. .Ltmp4:
  44.     .cfi_startproc
  45. # BB#0:
  46.     pushl   %eax
  47. .Ltmp5:
  48.     .cfi_def_cfa_offset 8
  49.     movl    $305419896, %eax        # imm = 0x12345678
  50.     movl    $305419896, (%esp)      # imm = 0x12345678
  51.     popl    %edx
  52.     ret
  53. .Ltmp6:
  54.     .size   _const(), .Ltmp6-_const()
  55. .Ltmp7:
  56.     .cfi_endproc
  57. .Leh_func_end1:
  58.  
  59.     .globl  main
  60.     .align  16, 0x90
  61.     .type   main,@function
  62. main:                                   # @main
  63. .Ltmp8:
  64.     .cfi_startproc
  65. # BB#0:
  66.     movl    $0, %eax
  67.     ret
  68. .Ltmp9:
  69.     .size   main, .Ltmp9-main
  70. .Ltmp10:
  71.     .cfi_endproc
  72. .Leh_func_end2:
  73.  
  74.     .section    ".note.GNU-stack","",@progbits
  75.  
  76. x64
  77. -------------------------------------------------------------------------
  78.  
  79.     .file   "/tmp/webcompile/_26405_0.bc"
  80.     .text
  81.     .globl  _enum()
  82.     .align  16, 0x90
  83.     .type   _enum(),@function
  84. _enum():                              # @_enum()
  85. .Ltmp0:
  86.     .cfi_startproc
  87. # BB#0:
  88.     movl    $305419896, %eax        # imm = 0x12345678
  89.     ret
  90. .Ltmp1:
  91.     .size   _enum(), .Ltmp1-_enum()
  92. .Ltmp2:
  93.     .cfi_endproc
  94. .Leh_func_end0:
  95.  
  96.     .globl  _const()
  97.     .align  16, 0x90
  98.     .type   _const(),@function
  99. _const():                             # @_const()
  100. .Ltmp3:
  101.     .cfi_startproc
  102. # BB#0:
  103.     movl    $305419896, %eax        # imm = 0x12345678
  104.     movl    $305419896, -4(%rsp)    # imm = 0x12345678
  105.     ret
  106. .Ltmp4:
  107.     .size   _const(), .Ltmp4-_const()
  108. .Ltmp5:
  109.     .cfi_endproc
  110. .Leh_func_end1:
  111.  
  112.     .globl  main
  113.     .align  16, 0x90
  114.     .type   main,@function
  115. main:                                   # @main
  116. .Ltmp6:
  117.     .cfi_startproc
  118. # BB#0:
  119.     movl    $0, %eax
  120.     ret
  121. .Ltmp7:
  122.     .size   main, .Ltmp7-main
  123. .Ltmp8:
  124.     .cfi_endproc
  125. .Leh_func_end2:
  126.  
  127.  
  128.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment