Skip to content

Commit

Permalink
Update gcc.md (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 8, 2022
1 parent d321536 commit bb830bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/gcc.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ gcc testfun.c test.c -o test
```shell
gcc -c testfun.c #将testfun.c编译成testfun.o
gcc -c test.c #将test.c编译成test.o
gcc -o testfun.o test.o -o test #将testfun.o和test.o链接成test
gcc testfun.o test.o -o test #将testfun.o和test.o链接成test
```

以上两种方法相比较,第一中方法编译时需要所有文件重新编译,而第二种方法可以只重新编译修改的文件,未修改的文件不用重新编译。
Expand Down

0 comments on commit bb830bc

Please sign in to comment.