Mercurial > hg > Papers > 2016 > kaito-master
diff paper/sample0.s @ 15:57b390dce7df
add css
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 14 Feb 2016 19:07:10 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/sample0.s Sun Feb 14 19:07:10 2016 +0900 @@ -0,0 +1,52 @@ + .section __TEXT,__text,regular,pure_instructions + .macosx_version_min 10, 11 + .globl _add + .align 4, 0x90 +_add: ## @add + .cfi_startproc +## BB#0: + pushq %rbp +Ltmp0: + .cfi_def_cfa_offset 16 +Ltmp1: + .cfi_offset %rbp, -16 + movq %rsp, %rbp +Ltmp2: + .cfi_def_cfa_register %rbp + movl %edi, -4(%rbp) + movl %esi, -8(%rbp) + movl -4(%rbp), %esi + addl -8(%rbp), %esi + movl %esi, %eax + popq %rbp + retq + .cfi_endproc + + .globl _main + .align 4, 0x90 +_main: ## @main + .cfi_startproc +## BB#0: + pushq %rbp +Ltmp3: + .cfi_def_cfa_offset 16 +Ltmp4: + .cfi_offset %rbp, -16 + movq %rsp, %rbp +Ltmp5: + .cfi_def_cfa_register %rbp + subq $16, %rsp + movl $1, %eax + movl $0, -4(%rbp) + movl %eax, %edi + movl %eax, %esi + callq _add + movl %eax, -8(%rbp) + movl -8(%rbp), %eax + addq $16, %rsp + popq %rbp + retq + .cfi_endproc + + +.subsections_via_symbols