This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/TMS320F28377S:如何创建可显示结构成员地址的 txt 文件

Guru**** 2451970 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/938395/compiler-tms320f28377s-how-to-create-the-txt-file-which-can-show-the-address-of-structure-members

器件型号:TMS320F28377S

工具/软件:TI C/C++编译器

您好!

如何创建文件并获取结构成员的地址?

BR、Jordan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    若尔登

    我想您可以在映射文件中获取结构的地址、然后可以根据偏移量计算结构的各个成员。 这不起作用吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Santosh、

    您说得对、我们可以从结构地址及其偏移中获取地址。  

    但是、从客户的角度来看、他们喜欢获取包含所有信息的*。txt 文件。 它将更便于调试故障。  

    非常感谢。

    BR、Jordan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jordon、

    您是否已尝试使用选项为--dward_display=help 的 ofd2000实用程序?

    如下所示:

    C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/ofd2000 -g -dwarf_display=d缩写词、nodaranges HelloWorld.out > a.txt