什么是.axf文件? [英] What are .axf files?

查看:3251
本文介绍了什么是.axf文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我新的ARM架构,我对嵌入式软件的工作,并试图了解.axf文件,该文件是present在我的项目二进制的debug文件夹。

I am new to arm architecture, I work on embedded software and was trying to learn about the .axf file which is present in my project binary's debug folder.

发现它是链接器生成的可执行手臂格式文件,同时,它在调试崩溃是用来构建过程。所以很明显,它包含一些调试信息,但其并不清楚什么样的信息,这些信息?并且还存在着调试文件夹使用不同.MAP文件,所以这可能是这两个文件之间的差异?

Discovered that it is an arm executable format file generated by linker while the build process and it is used in debugging the crashes. So it is obvious that it contains some debugging information but its not clear what kind of information that is? And also there exists one .map file in the debug folder, so what could be the difference between these two files?

推荐答案

的AXF文件是一个的目标文件格式的由ARM公司的RealView编译器(也Keil的ARM-MDK的一部分)产生的,并包含对象code和调试信息。在调试器,而只是对象code为装载在目标本身,无论是code和调试信息被装载在开发主机的存储器中。

The AXF file is an object file format generated by ARM's RealView compiler (also part of Keil's ARM-MDK) and contains both object code and debug information. In the debugger, while just the object code is loaded on the target itself, both the code and the debug information are loaded in the development host's memory.

在调试(任何形式的 - 不只是崩溃)通过JTAG,SWD或其他连接的code必须是可用的主机上与该code。与原始来源$相关联的调试信息一起C $℃。在调试连接,诸如寄存器值只有最小的数据传送,因此,例如在调试器将采取程序计数器值和能够显示汇编和源$ C ​​$ c。使用在调试数据是可用的主机上在AXF。

When debugging (of any kind - not just crashes) via JTAG, SWD or other connection the code needs to be available on the host along with the debug information that associates that code with the original source code. Over the debug connection, only minimal data such as register values are transferred, so for example the debugger will take the program counter value and be able to display the assembler and source code which is available on the host using the debug data in the AXF.

的地图文件中包含的一些的相同的信息,但它是用于人类可读性和消费而不是机的使用,并且不包含在<青霉>源$ C ​​$ C线向对象code 的由源代码级调试所需的关联数据。

The MAP file contains some of the same information, but it is intended for human readability and consumption rather than machine use, and does not contain the source code line to object code association data needed by source level debugger.

晴,你可以忽略它 - 编译器生成它,调试器加载它。您的工具链也可能生成一个.hex文件是你用什么生产的编程和仅包含机器code和常量数据和initialisers。

Mostly you can ignore it - the compiler generates it, the debugger loads it. Your toolchain probably also generates a .hex file which is what you'd use for production programming and contains just the machine code and constant data and initialisers.

这篇关于什么是.axf文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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