1 Star 0 Fork 1

fengxueygr/asm_fragment

forked from 西边/asm_fragment 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
a11.s 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
西边 提交于 2021-09-20 11:11 . comit
.file "hello4.c"
.text
.section .rodata
.LC2:
.string "WenQuanYi Zen Hei"
.LC6:
.string "\347\274\226\347\250\213\350\211\272\346\234\257"
.text
.type on_expose_event, @function
on_expose_event:
.LFB788:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movq %rdx, -40(%rbp)
movq -24(%rbp), %rax
movq 80(%rax), %rax
movq %rax, %rdi
call gdk_cairo_create@PLT
movq %rax, -8(%rbp)
movsd .LC0(%rip), %xmm0
movq -8(%rbp), %rax
pxor %xmm2, %xmm2
pxor %xmm1, %xmm1
movq %rax, %rdi
call cairo_set_source_rgb@PLT
movq -8(%rbp), %rax
movl $0, %ecx
movl $0, %edx
leaq .LC2(%rip), %rsi
movq %rax, %rdi
call cairo_select_font_face@PLT
movsd .LC3(%rip), %xmm0
movq -8(%rbp), %rax
movq %rax, %rdi
call cairo_set_font_size@PLT
movsd .LC4(%rip), %xmm1
movsd .LC5(%rip), %xmm0
movq -8(%rbp), %rax
movq %rax, %rdi
call cairo_move_to@PLT
movq -8(%rbp), %rax
leaq .LC6(%rip), %rsi
movq %rax, %rdi
call cairo_show_text@PLT
movq -8(%rbp), %rax
movq %rax, %rdi
call cairo_destroy@PLT
movl $0, %eax
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE788:
.size on_expose_event, .-on_expose_event
.section .rodata
.LC7:
.string "expose-event"
.LC8:
.string "destroy"
.text
.globl main
.type main, @function
main:
.LFB789:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movl %edi, -20(%rbp)
movq %rsi, -32(%rbp)
leaq -32(%rbp), %rdx
leaq -20(%rbp), %rax
movq %rdx, %rsi
movq %rax, %rdi
call gtk_init@PLT
movl $0, %edi
call gtk_window_new@PLT
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movl $0, %r9d
movl $0, %r8d
movl $0, %ecx
leaq on_expose_event(%rip), %rdx
leaq .LC7(%rip), %rsi
movq %rax, %rdi
call g_signal_connect_data@PLT
movq -8(%rbp), %rax
movl $0, %r9d
movl $0, %r8d
movl $0, %ecx
movq gtk_main_quit@GOTPCREL(%rip), %rdx
leaq .LC8(%rip), %rsi
movq %rax, %rdi
call g_signal_connect_data@PLT
call gtk_window_get_type@PLT
movq %rax, %rdx
movq -8(%rbp), %rax
movq %rdx, %rsi
movq %rax, %rdi
call g_type_check_instance_cast@PLT
movl $1, %esi
movq %rax, %rdi
call gtk_window_set_position@PLT
call gtk_window_get_type@PLT
movq %rax, %rdx
movq -8(%rbp), %rax
movq %rdx, %rsi
movq %rax, %rdi
call g_type_check_instance_cast@PLT
movl $48, %edx
movl $320, %esi
movq %rax, %rdi
call gtk_window_set_default_size@PLT
movq -8(%rbp), %rax
movl $1, %esi
movq %rax, %rdi
call gtk_widget_set_app_paintable@PLT
movq -8(%rbp), %rax
movq %rax, %rdi
call gtk_widget_show_all@PLT
call gtk_main@PLT
movl $0, %eax
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE789:
.size main, .-main
.section .rodata
.align 8
.LC0:
.long 1305670058
.long 1071911010
.align 8
.LC3:
.long 0
.long 1077411840
.align 8
.LC4:
.long 0
.long 1078001664
.align 8
.LC5:
.long 0
.long 1076101120
.ident "GCC: (Ubuntu 8.3.0-6ubuntu1) 8.3.0"
.section .note.GNU-stack,"",@progbits
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fengxueygr/asm_fragment.git
git@gitee.com:fengxueygr/asm_fragment.git
fengxueygr
asm_fragment
asm_fragment
master

搜索帮助