gcc

Drive cpp, cc1, as, ld

echo 'int main(void) {return 0;}' | gcc -E -

# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<命令行>"
# 1 "<stdin>"
int main(void) {return 0;}

echo 'int main(void) {return 0;}' | gcc -x c -S -

    .file    ""
    .def    __main;    .scl    2;    .type    32;    .endef
    .text
    .globl    main
    .def    main;    .scl    2;    .type    32;    .endef
    .seh_proc    main
main:
    pushq    %rbp
    .seh_pushreg    %rbp
    movq    %rsp, %rbp
    .seh_setframe    %rbp, 0
    subq    $32, %rsp
    .seh_stackalloc    32
    .seh_endprologue
    call    __main
    movl    $0, %eax
    addq    $32, %rsp
    popq    %rbp
    ret
    .seh_endproc
    .ident    "GCC: (GNU) 5.3.0"

results matching ""

    No results matching ""