Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int _enum()
- {
- enum {value = 0x12345678};
- return int(value);
- }
- int _const()
- {
- const int value = 0x12345678;
- return value;
- }
- int main()
- {
- }
- x86
- --------------------------------------------------------------------------
- .file "/tmp/webcompile/_25782_0.bc"
- .text
- .globl _enum()
- .align 16, 0x90
- .type _enum(),@function
- _enum(): # @_enum()
- .Ltmp0:
- .cfi_startproc
- # BB#0:
- movl $305419896, %eax # imm = 0x12345678
- ret
- .Ltmp1:
- .size _enum(), .Ltmp1-_enum()
- .Ltmp2:
- .cfi_endproc
- .Leh_func_end0:
- .globl _const()
- .align 16, 0x90
- .type _const(),@function
- _const(): # @_const()
- .Ltmp4:
- .cfi_startproc
- # BB#0:
- pushl %eax
- .Ltmp5:
- .cfi_def_cfa_offset 8
- movl $305419896, %eax # imm = 0x12345678
- movl $305419896, (%esp) # imm = 0x12345678
- popl %edx
- ret
- .Ltmp6:
- .size _const(), .Ltmp6-_const()
- .Ltmp7:
- .cfi_endproc
- .Leh_func_end1:
- .globl main
- .align 16, 0x90
- .type main,@function
- main: # @main
- .Ltmp8:
- .cfi_startproc
- # BB#0:
- movl $0, %eax
- ret
- .Ltmp9:
- .size main, .Ltmp9-main
- .Ltmp10:
- .cfi_endproc
- .Leh_func_end2:
- .section ".note.GNU-stack","",@progbits
- x64
- -------------------------------------------------------------------------
- .file "/tmp/webcompile/_26405_0.bc"
- .text
- .globl _enum()
- .align 16, 0x90
- .type _enum(),@function
- _enum(): # @_enum()
- .Ltmp0:
- .cfi_startproc
- # BB#0:
- movl $305419896, %eax # imm = 0x12345678
- ret
- .Ltmp1:
- .size _enum(), .Ltmp1-_enum()
- .Ltmp2:
- .cfi_endproc
- .Leh_func_end0:
- .globl _const()
- .align 16, 0x90
- .type _const(),@function
- _const(): # @_const()
- .Ltmp3:
- .cfi_startproc
- # BB#0:
- movl $305419896, %eax # imm = 0x12345678
- movl $305419896, -4(%rsp) # imm = 0x12345678
- ret
- .Ltmp4:
- .size _const(), .Ltmp4-_const()
- .Ltmp5:
- .cfi_endproc
- .Leh_func_end1:
- .globl main
- .align 16, 0x90
- .type main,@function
- main: # @main
- .Ltmp6:
- .cfi_startproc
- # BB#0:
- movl $0, %eax
- ret
- .Ltmp7:
- .size main, .Ltmp7-main
- .Ltmp8:
- .cfi_endproc
- .Leh_func_end2:
- .section ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment