您的位置:首页 > 其它

Install qemu-arm for Ubuntu

2017-04-05 16:58 411 查看
1. 安装:

$ sudo apt-get install gcc-arm-linux-gnueabi

$ sudo apt-get install qemu-user qemu-system qemu-utils

 

2. C代码(hello.c)

#include <stdio.h>

int main(int argc, char* argv[])

{

  printf("hello\n");

  return 0;

}

 

3. 编译:

$ arm-linux-gnueabi-gcc hello.c -o hello -static

 

4. 运行:

$ qemu-arm ./hello

hello

 

Reference:

http://blog.csdn.net/hmsiwtv/article/details/19763709 

http://blog.csdn.net/flyingcloude/article/details/9417791

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: