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: TMS320F28377S

Part Number: TMS320F28377S

请问,如何在.map文件中生成结构体变量中的地址,例如

typedef struct {

    int A1;

    int A2;

}TEST;

生成的.map文件中包含 A1, A2,的地址信息。

  • 好像没有直接生成的办法,只能间接得获取:

    1、可以在程序中将成员的地址赋值出来,看具体地址。

    2、看到结构体名所在地址,然后成员地址根据占用字节顺序向后偏移