📄 test.asm
字号:
.file "testCJH.cpp"
.lcomm __ZSt8__ioinit,16
.text
.align 2
.globl __Z1fR1A
.def __Z1fR1A; .scl 2; .type 32; .endef
__Z1fR1A:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
.def ___main; .scl 2; .type 32; .endef
.align 2
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
subl $56, %esp
andl $-16, %esp
movl $0, %eax
movl %eax, -28(%ebp)
movl -28(%ebp), %eax
call __alloca
call ___main
leal -24(%ebp), %eax
movl %eax, (%esp)
call __ZN1BC1Ev
leal -24(%ebp), %eax
movl %eax, (%esp)
call __Z1fR1A
movl $0, %eax
leave
ret
.align 2
.def __Z41__static_initialization_and_destruction_0ii; .scl 3; .type 32; .endef
__Z41__static_initialization_and_destruction_0ii:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
cmpl $65535, 12(%ebp)
jne L4
cmpl $1, 8(%ebp)
jne L4
movl $__ZSt8__ioinit, (%esp)
call __ZNSt8ios_base4InitC1Ev
L4:
cmpl $65535, 12(%ebp)
jne L3
cmpl $0, 8(%ebp)
jne L3
movl $__ZSt8__ioinit, (%esp)
call __ZNSt8ios_base4InitD1Ev
L3:
leave
ret
.section .text$_ZN1BC1Ev,"x"
.linkonce discard
.align 2
.globl __ZN1BC1Ev
.def __ZN1BC1Ev; .scl 2; .type 32; .endef
__ZN1BC1Ev:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl 8(%ebp), %eax
movl %eax, (%esp)
call __ZN1AC2Ev
movl 8(%ebp), %eax
movl $__ZTV1B+8, (%eax)
leave
ret
L7:
L6:
.globl __ZNSt15basic_streambufIcSt11char_traitsIcEE13_S_pback_sizeE
.section .rdata$_ZNSt15basic_streambufIcSt11char_traitsIcEE13_S_pback_sizeE,""
.linkonce same_size
.align 4
__ZNSt15basic_streambufIcSt11char_traitsIcEE13_S_pback_sizeE:
.long 1
.globl __ZTV1B
.section .rdata$_ZTV1B,""
.linkonce same_size
.align 8
__ZTV1B:
.long 0
.long __ZTI1B
.long __ZN1B4testEv
.section .text$_ZN1AC2Ev,"x"
.linkonce discard
.align 2
.globl __ZN1AC2Ev
.def __ZN1AC2Ev; .scl 2; .type 32; .endef
__ZN1AC2Ev:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
movl $__ZTV1A+8, (%eax)
popl %ebp
ret
L10:
L9:
.section .text$_ZN1B4testEv,"x"
.linkonce discard
.align 2
.globl __ZN1B4testEv
.def __ZN1B4testEv; .scl 2; .type 32; .endef
__ZN1B4testEv:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
.globl __ZTI1B
.section .rdata$_ZTI1B,""
.linkonce same_size
.align 4
__ZTI1B:
.long __ZTVN10__cxxabiv120__si_class_type_infoE+8
.long __ZTS1B
.long __ZTI1A
.globl __ZTS1B
.section .rdata$_ZTS1B,""
.linkonce same_size
__ZTS1B:
.ascii "1B\0"
.globl __ZTV1A
.section .rdata$_ZTV1A,""
.linkonce same_size
.align 8
__ZTV1A:
.long 0
.long __ZTI1A
.long __ZN1A4testEv
.section .text$_ZN1A4testEv,"x"
.linkonce discard
.align 2
.globl __ZN1A4testEv
.def __ZN1A4testEv; .scl 2; .type 32; .endef
__ZN1A4testEv:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
.globl __ZTI1A
.section .rdata$_ZTI1A,""
.linkonce same_size
.align 4
__ZTI1A:
.long __ZTVN10__cxxabiv117__class_type_infoE+8
.long __ZTS1A
.globl __ZTS1A
.section .rdata$_ZTS1A,""
.linkonce same_size
__ZTS1A:
.ascii "1A\0"
.text
.align 2
.def __GLOBAL__I__Z1fR1A; .scl 3; .type 32; .endef
__GLOBAL__I__Z1fR1A:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl $65535, 4(%esp)
movl $1, (%esp)
call __Z41__static_initialization_and_destruction_0ii
leave
ret
.section .ctors,"w"
.align 4
.long __GLOBAL__I__Z1fR1A
.text
.align 2
.def __GLOBAL__D__Z1fR1A; .scl 3; .type 32; .endef
__GLOBAL__D__Z1fR1A:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl $65535, 4(%esp)
movl $0, (%esp)
call __Z41__static_initialization_and_destruction_0ii
leave
ret
.section .dtors,"w"
.align 4
.long __GLOBAL__D__Z1fR1A
.def __ZN1A4testEv; .scl 3; .type 32; .endef
.def __ZN1B4testEv; .scl 3; .type 32; .endef
.def __ZNSt8ios_base4InitD1Ev; .scl 3; .type 32; .endef
.def __ZN1AC2Ev; .scl 3; .type 32; .endef
.def __ZN1BC1Ev; .scl 3; .type 32; .endef
.def __ZNSt8ios_base4InitC1Ev; .scl 3; .type 32; .endef
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -