接触GCC

GCC是最流行的编译系统(GUN Cpmpile Collection)。
强大的功能体现在三个方面:
1)能在不同体系的硬件平台编译程序。
2)能支持C、C++、Pascal、Java等众多高级语言。
3)编译效率非常高,比别的编译系统高出20%左右。
详细命令输入gcc -v查询
在这里插入图片描述
gcc -c test.c 和 gcc test.o -o test命令然后运行,结果如下:

[root@jsetc home]# vim test.c
[root@jsetc home]# ls
fst fstfstfst fstttttt test1 test.c
[root@jsetc home]# gcc -c test.c
[root@jsetc home]# ls
fst fstfstfst fstttttt test1 test.c test.o
[root@jsetc home]# gcc test.o -o test
[root@jsetc home]# ls
fst fstfstfst fstttttt test test1 test.c test.o
[root@jsetc home]# ./test
Hello World!

猜你喜欢

转载自blog.csdn.net/qq_43257912/article/details/82878133
gcc