gcc共通オプション
829 ワード
1, :gcc -E test.c
-E, 。 。
2, :gcc -S test.c
-S, , 。
3, : gcc -c test.c
-c, , 。( , a.out)
4, 、 :gcc (-E/S/c/) test.c -o output_filename
-o, , 。
-o 。 :
-E: ( )
-S: source_file.s
-c: source_file.o 。
: a.out 。
, : gcc -c test.c -o test.o
gcc :
-Wall -W,-W, (warning) 。-Wall, 。
-L,
-l,
:gcc source_file.c -L/path/to/lib -lxxx -I/path/to/include
:path/to/lib ; :libxxx.a (lib .a )
-g: , ,
-O:( O)
-w:
-v: gcc 。 , 、 ,