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

查看:33
本文介绍了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 架构构建应用程序并在目标(在您的情况下是模拟器)上运行它所需的一切.一个好的起点是 buildrootELDK.这些将为您提供完整的跨 Linux 解决方案.如果您只想编译,而不使用 Linux 安装(以及随附的 rootfs),则只能使用交叉编译器.一个免费的是 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天全站免登陆