diff options
Diffstat (limited to 'src/blog/2023-11-14-test-visibility-c-macro/main3.s')
| -rw-r--r-- | src/blog/2023-11-14-test-visibility-c-macro/main3.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/blog/2023-11-14-test-visibility-c-macro/main3.s b/src/blog/2023-11-14-test-visibility-c-macro/main3.s new file mode 100644 index 0000000..6b7d9f9 --- /dev/null +++ b/src/blog/2023-11-14-test-visibility-c-macro/main3.s | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | .file "main3.c" | ||
| 2 | .text | ||
| 3 | .section .rodata.str1.1,"aMS",@progbits,1 | ||
| 4 | .LC0: | ||
| 5 | .string "%d\n" | ||
| 6 | .text | ||
| 7 | .globl main | ||
| 8 | .type main, @function | ||
| 9 | main: | ||
| 10 | .LFB12: | ||
| 11 | .cfi_startproc | ||
| 12 | subq $8, %rsp | ||
| 13 | .cfi_def_cfa_offset 16 | ||
| 14 | movl $351, %esi | ||
| 15 | leaq .LC0(%rip), %rdi | ||
| 16 | movl $0, %eax | ||
| 17 | call printf@PLT | ||
| 18 | movl $0, %eax | ||
| 19 | addq $8, %rsp | ||
| 20 | .cfi_def_cfa_offset 8 | ||
| 21 | ret | ||
| 22 | .cfi_endproc | ||
| 23 | .LFE12: | ||
| 24 | .size main, .-main | ||
| 25 | .ident "GCC: (GNU) 12.2.0" | ||
| 26 | .section .note.GNU-stack,"",@progbits | ||
