嵌入式系统第二讲(研)指令嵌入式Linux开发环境解读.ppt

嵌入式系统第二讲(研)指令嵌入式Linux开发环境解读.ppt

嵌入式系统第二讲(研)指令嵌入式Linux开发环境解读

需先烧写superboot到SD卡 Windows系统下,以管理员身份运行Sd-flasher.exe 选择tiny210机器 把SD卡连上电脑,选择正确的superboot.bin文件 用“fuse”功能把Superboot烧写到SD卡中 详细请见文档“Tiny210系统烧写.doc” 嵌入式Linux应用程序例程 Helloworld例程 #include stdio.h int main(void) { int i; for(i=0;i10;i++) printf(hello world! i=%d \n,i); return 0; } HelloWorld例程 生成helloworld.c 执行gcc –o hello helloworld.c 执行arm-linux-gcc –o hello-arm helloworld.c 用file命令分别查看 #file hello #file hello-arm X86与ARM例程HelloWorld Makefile简介 工程管理文件,定义源代码如何进行编译 一般名字为makefile或Makefile 有makefile后,编译时只需#make 对于源文件数量庞大的工程,必不可少 Makefile一般定义了: Gcc编译工具 编译命令 目标文件 依赖关系 Makefile例 例: test.o: test.c

文档评论(0)

1亿VIP精品文档

相关文档