以C語言教程01:gcc編譯器為例子
得到的gcctest.i文件內容太多,所以通過最下面的網盤獲取
得到的gcctest.s文件如下:
.file "gcctest.c" .section .rodata .LC0: .string "This is a gcc test!" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl $.LC0, %edi call puts movl $0, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (Ubuntu 5.2.1-18ubuntu1) 5.2.1 20150922" .section .note.GNU-stack,"",@progbits