Mercurial > hg > Papers > 2016 > kaito-master
comparison paper/sample.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 |
comparison
equal
deleted
inserted
replaced
14:995f2db46e52 | 15:57b390dce7df |
---|---|
1 .section __TEXT,__text,regular,pure_instructions | |
2 .macosx_version_min 10, 11 | |
3 .globl _add | |
4 .align 4, 0x90 | |
5 _add: ## @add | |
6 .cfi_startproc | |
7 ## BB#0: | |
8 movl %edi, -4(%rsp) | |
9 movl %esi, -8(%rsp) | |
10 movl -4(%rsp), %esi | |
11 addl -8(%rsp), %esi | |
12 movl %esi, %eax | |
13 retq | |
14 .cfi_endproc | |
15 | |
16 .globl _main | |
17 .align 4, 0x90 | |
18 _main: ## @main | |
19 .cfi_startproc | |
20 ## BB#0: | |
21 pushq %rbp | |
22 Ltmp0: | |
23 .cfi_def_cfa_offset 16 | |
24 Ltmp1: | |
25 .cfi_offset %rbp, -16 | |
26 movq %rsp, %rbp | |
27 Ltmp2: | |
28 .cfi_def_cfa_register %rbp | |
29 subq $16, %rsp | |
30 movl $1, %eax | |
31 movl $0, -4(%rbp) | |
32 movl %eax, %edi | |
33 movl %eax, %esi | |
34 callq _add | |
35 movl %eax, -8(%rbp) | |
36 movl -8(%rbp), %eax | |
37 addq $16, %rsp | |
38 popq %rbp | |
39 retq | |
40 .cfi_endproc | |
41 | |
42 | |
43 .subsections_via_symbols |