預(yù)編譯--->編譯--->鏈接
a.預(yù)編譯: 1.包含的的函數(shù)庫打開加載到程序中
? ? ? ? ? ? ? ? ? ? ?2.消掉注釋
? ? ? gcc -E -o ?hello.e ?hello.c
? ?
預(yù)編譯
? ? ? ? ?<>:在系統(tǒng)函數(shù)庫中查找中
? ? ? ? ?" ":在當(dāng)前文件查找
b.編譯:分為匯編:gcc -S -o hello.s hello.e
? ? ? ? ? ? ? ? ? ? ? ? 編譯 ? ?gcc -c ?-0 hello.o ?hello.s
c.鏈接:gcc -o hello hello.o
? ? ? ? ? ? ? ? ? ? ? ? 鏈接是把動(dòng)態(tài)庫函數(shù)bin 文件也鏈接起來如 printf;