gcc常用命令

常用選項 一個c文件要經過如下處理才能變成可執行文件 Step1:預編譯 gcc -E -o hello.i hello.c Step2:編譯 gcc -S -o hello.s hello.i Step3:彙編 gcc -c -o hello.o hello.s Step4:鏈接 gcc -o hello hello.o 如果要一步到位 gcc -o hello hello.c 下面
相關文章
相關標籤/搜索