在Linux x86平台上学习ARM所需的工具 [英] Tools required to learn ARM on linux x86 platform

查看:119
本文介绍了在Linux x86平台上学习ARM所需的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个x86的Linux盒子.在阅读有关ARM的各种信息时,我很好奇,现在我正在考虑花一些时间来学习这种体系结构.到目前为止,我的目标是能够为ARM编写琐碎的汇编程序,使用一些汇编器为ARM生成目标代码,并能够在仿真的ARM机器上运行该程序.首先,我下载了ARM体系结构参考手册.根据此处的信息,Linux不支持Keil,因此 请为我提供所需的工具(汇编器,仿真器).

I've a x86, linux box. while reading some assorted information on ARM, i got curious and now I'm thinking of spending some time learning this architecture. My goal as of now is to be able to write trivial assembly programs for ARM, use some assembler to generate the target code for ARM and be able to run that program on an emulated ARM machine. To start with I've downloaded ARM architecture reference manual. According to the information here , Keil is not supported on Linux, hence please help me with the tools(assembler, emulator) that I'd need.

推荐答案

基本上,您需要两件事-工具链和模拟器.

Basically, you need two things - a toolchain and an emulator.

该工具链包含为ARM体系结构构建应用程序并在目标(在您的情况下为仿真器)上运行它所需的所有内容.一个不错的起点是 buildroot CodeSourcery ,但还有其他一些(大多数基于GCC).

The toolchain consists of all that you need to build applications for the ARM architecture and to run it on the target (in your case, an emulator). A good place to start would be buildroot or ELDK. These will provide you with a complete cross-Linux solution. If you want to only be able to compile, without working with a Linux installation (and the accompanying rootfs), you can use only a cross-compiler. One free is CodeSourcery, but there are some others as well (most based on GCC).

仿真器是您运行代码的地方,其行为将类似于ARM CPU.一个很好的起点是 QEMU .

The emulator is the place you will run the code, that will behave like an ARM CPU. A good place to start is QEMU.

跨项目的学习曲线相当陡峭,需要大量的在线搜索才能完成工作.很少有关于整个过程的详细分步指南,但是对于工作的各个部分有很多指南.

Cross-projects have a rather steep learning curve, and require lots of searching online to get things done. Rarely are there detailed step-by-step guides for the entire process, but there are many guides for various parts of the work.

这篇关于在Linux x86平台上学习ARM所需的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆