FreeBSD 11.1 查看编译器:
cc -v
test.c文件:
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}
编译c代码:
cc -O3 -o test test.c
生产test,运行:
./test
FreeBSD 11.1 查看编译器:
cc -v
test.c文件:
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}
编译c代码:
cc -O3 -o test test.c
生产test,运行:
./test
转载于:https://my.oschina.net/michaelshu/blog/1628349