Tiny6410 交叉编译helloworld程序

在工作目录下建立helloworld.c文件

 

  1. #include <stdio.h>  
  2. main()  
  3. {  
  4.     printf("helloworld!\n");  
  5. }  


保存关闭后。

 

编译helloworld文件:

 

  1. root@snail:/home/workdir/qt/project/helloworld# arm-linux-gcc helloworld.c -o helloworld  


生成可执行文件helloworld:

 

将可执行文件helloworld拷贝到文件系统目录,并执行

执行成功。

这是最简单的交叉编译示例。

posted @ 2013-07-27 10:57  莫回头  阅读(399)  评论(0编辑  收藏  举报