Skip to content

Instantly share code, notes, and snippets.

@JackyYin
Created January 6, 2022 08:23
Show Gist options
  • Save JackyYin/ec667bc2213728bd2bce1f3f2fb882c8 to your computer and use it in GitHub Desktop.
Save JackyYin/ec667bc2213728bd2bce1f3f2fb882c8 to your computer and use it in GitHub Desktop.
g:
.LFB0:
endbr64
subq $8, %rsp
leaq .LC0(%rip), %rdi
call puts@PLT
nop
addq $8, %rsp
ret
f:
.LFB1:
endbr64
subq $24, %rsp
movl %edi, 12(%rsp)
movl %esi, 8(%rsp)
movl $0, %eax
call g
nop
addq $24, %rsp
ret
main:
.LFB2:
endbr64
subq $8, %rsp
movl $100, %esi
movl $10, %edi
call f
movl $0, %eax
addq $8, %rsp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment