回答編集履歴
2
誤記修正
test
CHANGED
@@ -28,21 +28,63 @@
|
|
28
28
|
|
29
29
|
ーーーー
|
30
30
|
|
31
|
-
アセンブラソース(元のソースを-
|
31
|
+
アセンブラソース(元のソースを-Sオプションで出力したもの)
|
32
|
+
|
32
|
-
|
33
|
+
.text
|
34
|
+
|
33
|
-
|
35
|
+
.file "tst.c"
|
34
|
-
|
36
|
+
|
35
|
-
|
37
|
+
.globl main # -- Begin function main
|
38
|
+
|
36
|
-
|
39
|
+
.p2align 4, 0x90
|
40
|
+
|
37
|
-
|
41
|
+
.type main,@function
|
38
|
-
|
39
|
-
|
42
|
+
|
40
|
-
|
41
|
-
|
43
|
+
main: # @main
|
44
|
+
|
42
|
-
|
45
|
+
.cfi_startproc
|
46
|
+
|
47
|
+
# BB#0:
|
48
|
+
|
49
|
+
pushq %rax
|
50
|
+
|
51
|
+
.cfi_def_cfa_offset 16
|
52
|
+
|
53
|
+
movl $.Lstr, %edi
|
54
|
+
|
55
|
+
callq puts
|
56
|
+
|
57
|
+
xorl %eax, %eax
|
58
|
+
|
59
|
+
popq %rcx
|
60
|
+
|
61
|
+
retq
|
62
|
+
|
63
|
+
.Lfunc_end0:
|
64
|
+
|
43
|
-
|
65
|
+
.size main, .Lfunc_end0-main
|
66
|
+
|
44
|
-
|
67
|
+
.cfi_endproc
|
68
|
+
|
69
|
+
# -- End function
|
70
|
+
|
45
|
-
|
71
|
+
.type .Lstr,@object # @str
|
72
|
+
|
73
|
+
.section .rodata.str1.1,"aMS",@progbits,1
|
74
|
+
|
75
|
+
.Lstr:
|
76
|
+
|
77
|
+
.asciz "Hello Word!"
|
78
|
+
|
79
|
+
.size .Lstr, 12
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
.ident "clang version 6.0.0 (trunk 319536)"
|
86
|
+
|
87
|
+
.section ".note.GNU-stack","",@progbits
|
46
88
|
|
47
89
|
ーーーー
|
48
90
|
|
1
加筆
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
ーーーー
|
30
30
|
|
31
|
-
アセンブラソース
|
31
|
+
アセンブラソース(元のソースを-cオプションで出力したものをobjdumpで出力)
|
32
32
|
|
33
33
|
0000000000000000 <main>:
|
34
34
|
|