Created
February 1, 2015 22:54
-
-
Save anonymous/6b1a0918dc494ad17a45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
int n = 1; | |
while (n != 0) { | |
n *= 2; | |
cout << n << " "; | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.file "myfile.cpp" | |
.lcomm _ZStL8__ioinit,1,1 | |
.def __main; .scl 2; .type 32; .endef | |
.section .rdata,"dr" | |
.LC0: | |
.ascii " \0" | |
.text | |
.globl main | |
.def main; .scl 2; .type 32; .endef | |
.seh_proc main | |
main: | |
.LFB1034: | |
pushq %rbp | |
.seh_pushreg %rbp | |
movq %rsp, %rbp | |
.seh_setframe %rbp, 0 | |
subq $48, %rsp | |
.seh_stackalloc 48 | |
.seh_endprologue | |
call __main | |
movl $1, -4(%rbp) | |
jmp .L2 | |
.L3: | |
sall -4(%rbp) | |
movl -4(%rbp), %eax | |
movl %eax, %edx | |
movq .refptr._ZSt4cout(%rip), %rcx | |
call _ZNSolsEi | |
leaq .LC0(%rip), %rdx | |
movq %rax, %rcx | |
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc | |
.L2: | |
cmpl $0, -4(%rbp) | |
jne .L3 | |
movl $0, %eax | |
addq $48, %rsp | |
popq %rbp | |
ret | |
.seh_endproc | |
.def __tcf_0; .scl 3; .type 32; .endef | |
.seh_proc __tcf_0 | |
__tcf_0: | |
.LFB1039: | |
pushq %rbp | |
.seh_pushreg %rbp | |
movq %rsp, %rbp | |
.seh_setframe %rbp, 0 | |
subq $32, %rsp | |
.seh_stackalloc 32 | |
.seh_endprologue | |
leaq _ZStL8__ioinit(%rip), %rcx | |
call _ZNSt8ios_base4InitD1Ev | |
nop | |
addq $32, %rsp | |
popq %rbp | |
ret | |
.seh_endproc | |
.def _Z41__static_initialization_and_destruction_0ii; .scl 3; .type 32; .endef | |
.seh_proc _Z41__static_initialization_and_destruction_0ii | |
_Z41__static_initialization_and_destruction_0ii: | |
.LFB1038: | |
pushq %rbp | |
.seh_pushreg %rbp | |
movq %rsp, %rbp | |
.seh_setframe %rbp, 0 | |
subq $32, %rsp | |
.seh_stackalloc 32 | |
.seh_endprologue | |
movl %ecx, 16(%rbp) | |
movl %edx, 24(%rbp) | |
cmpl $1, 16(%rbp) | |
jne .L6 | |
cmpl $65535, 24(%rbp) | |
jne .L6 | |
leaq _ZStL8__ioinit(%rip), %rcx | |
call _ZNSt8ios_base4InitC1Ev | |
leaq __tcf_0(%rip), %rcx | |
call atexit | |
nop | |
.L6: | |
addq $32, %rsp | |
popq %rbp | |
ret | |
.seh_endproc | |
.def _GLOBAL__sub_I_main; .scl 3; .type 32; .endef | |
.seh_proc _GLOBAL__sub_I_main | |
_GLOBAL__sub_I_main: | |
.LFB1040: | |
pushq %rbp | |
.seh_pushreg %rbp | |
movq %rsp, %rbp | |
.seh_setframe %rbp, 0 | |
subq $32, %rsp | |
.seh_stackalloc 32 | |
.seh_endprologue | |
movl $65535, %edx | |
movl $1, %ecx | |
call _Z41__static_initialization_and_destruction_0ii | |
nop | |
addq $32, %rsp | |
popq %rbp | |
ret | |
.seh_endproc | |
.section .ctors,"w" | |
.align 8 | |
.quad _GLOBAL__sub_I_main | |
.ident "GCC: (GNU) 4.9.2" | |
.def _ZNSolsEi; .scl 2; .type 32; .endef | |
.def _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; .scl 2; .type 32; .endef | |
.def _ZNSt8ios_base4InitD1Ev; .scl 2; .type 32; .endef | |
.def _ZNSt8ios_base4InitC1Ev; .scl 2; .type 32; .endef | |
.def atexit; .scl 2; .type 32; .endef | |
.section .rdata$.refptr._ZSt4cout, "dr" | |
.globl .refptr._ZSt4cout | |
.linkonce discard | |
.refptr._ZSt4cout: | |
.quad _ZSt4cout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment