. File "Hello.c"
Gcc_compiled.:
. text
LC0:
. ASCII "Hello, world!\12\0"
. Align 2
. Globl _main
_main:
PUSHL%EBP
MOVL%ESP,%EBP
PUSHL $LC 0
Call _printf
Xorl%eax,%eax
JMP L1
. Align 2
L1:
Leave
Ret
The following is the HELLO.S with the-G option
. File "Hello.c"
Gcc_compiled.:
. Stabs "hello.c", 100,0,0,ltext
Ltext:
. Stabs "int:t1=r1;-2147483648;2147483647;", 128,0,0,0
. Stabs "char:t2=r2;0;127;", 128,0,0,0
. Stabs "long int:t3=r1;-2147483648;2147483647;", 128,0,0,0
. stabs "unsigned int:t4=r1;0;-1;", 128,0,0,0
. Stabs "Long unsigned int:t5=r1;0;-1;", 128,0,0,0
. Stabs "short int:t6=r1;-32768;32767;", 128,0,0,0
. Stabs "Long long int:t7=r1;0;-1;", 128,0,0,0
. Stabs "Short unsigned int:t8=r1;0;65535;", 128,0,0,0
. Stabs "Long long unsigned int:t9=r1;0;-1;", 128,0,0,0
. Stabs "signed char:t10=r1;-128;127;", 128,0,0,0
. stabs "unsigned char:t11=r1;0;255;", 128,0,0,0
. Stabs "float:t12=r1;4;0;", 128,0,0,0
. Stabs "double:t13=r1;8;0;", 128,0,0,0
. Stabs "long double:t14=r1;8;0;", 128,0,0,0
. Stabs "Void:t15=15", 128,0,0,0
. Stabs "Fpos_t:t3", 128,0,0,0
. Stabs "Size_t:t4", 128,0,0,0
. Stabs "__stdiobuf_t:t2", 128,0,0,0
. Stabs "__stdiosize_t:t4", 128,0,0,0
. Stabs "__iobuf:t16=s44__rptr:17=*2,0,32;__rend:17,32,32;\\", 128,0,0,0
. Stabs "__wptr:17,64,32;__wend:17,96,32;__base:17,128,32;\\", 128,0,0,0
. Stabs "__bufsiz:4,160,32;__flag:6,192,16;__file:2,208,8;\\", 128,0,0,0
. Stabs "__buf:2,216,8;__filbuf:18=*19=f1,224,32;__flsbuf:20=*21=f1,256,32;\\", 128,0,0,0
. stabs "__flush:18,288,32;__next:22=*16,320,32;;", 128,0,0,0
. Stabs "File:t16", 128,0,0,0
. text
LC0:
. ASCII "Hello, world!\12\0"
. Align 2
. Globl _main
_main:
. STABD 68,0,4
PUSHL%EBP
MOVL%ESP,%EBP
. STABD 68,0,5
PUSHL $LC 0
Call _printf
. STABD 68,0,6
Xorl%eax,%eax
JMP L1
. Align 2
. STABD 68,0,7
L1:
Leave
Ret
. Stabs "Main:f1", 36,0,0,_main
GCC-G option produces. s file, hello.c corresponding, very reference value!!!