您的位置:首页 > 运维架构 > Linux

在centos7测试arm-Linux-gcc交叉编译器

2017-11-13 14:42 190 查看
(1)在当前目录新建一个测试程序,在里面写入Hello World!程序

#include<stdio.h>
int main(void)
{
printf("Hello World!\n");
}


(2)使用编译器编译

[root@localhost Downloads]# arm-linux-gcc -o test test.c
[root@localhost Downloads]# ls
arm-linux-gcc-4.4.3-20100728.tar.gz  opt  test  test.c
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: