---
title: "最简单的免费ARM学习环境的建立"
author: "steeven"
date: "2012-08-25T23:22:05Z"
tags: []
categories: ["移动开发"]
slug: "arm"
draft: false
lastmod: "2012-08-26T10:40:36Z"
id: 1662994
url: "https://steeven.iteye.com/blog/1662994"
---

这几天在看arm, 有几种免费选择：
1. 如果学汇编， 用qemu即可，它可以直接执行arm汇编程序。
   apt-get install qemu-system
   qemu-arm -L /usr/arm-linux-gnueabi ~/workspace/hello/Debug/hello 动态链接也可以哦
2. 懒得开模拟器？有android手机？root过？好，装上adb驱动，编译好的程序扔到/system/bin或者/data下面去执行。
   在ubuntu下安装交叉编译工具，或者再安装eclipse-cdt就更方便了。 记得要静态编译！ubuntu自带arm编译工具： apt-get install gcc-arm-linux-gnueabi
3. 用qemu模拟arm安装debian arm电脑，所有开发就像在x86 debian(和ubuntu一样）
   http://www.cnblogs.com/Akann/archive/2012/01/01/2307804.html
   如果让系统自动分区，可能挂载img的分区偏移要重新计算，参见：
   http://hi.baidu.com/konglinglong/blog/item/ede36a0e5473e8ef37d122e1.html
   安装完了和真正的系统差不多，uname一看是arm的！