vim hello.c 编写C程序
gcc hello.c 生成可执行文件 a.out
./a.out 执行
gcc hello.c -o hello 为编译后的文件指定一个名字
./hello 这里的hello相当于a.out
gcc -e hello.c -o hello.i
gcc -e 是生成预处理文件
gcc简单使用
最新推荐文章于 2024-07-08 22:09:55 发布
vim hello.c 编写C程序
gcc hello.c 生成可执行文件 a.out
./a.out 执行
gcc hello.c -o hello 为编译后的文件指定一个名字
./hello 这里的hello相当于a.out
gcc -e hello.c -o hello.i
gcc -e 是生成预处理文件