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.

Compiler: How CCS watch window see every member's address for a structure

Tool/software: TI C/C++ Compiler

Hello all,

I want to get the address of every member in a structure from map file or link info file after compile. However, these two files only show the address of the structure, not each member's address. I searched the forum and found this answer

https://e2e.ti.com/support/development_tools/compiler/f/343/t/525267

It looks like there is no tool to get the address of each member for a structure.

However, when I use CCS watch window, it looks like it can see each member's address without any problem. Does anyone know how CCS watch window see these addresses.

Thanks

  • Hi Fei,
    Sorry for the late response on this. Likely the expressions view determines each members address by using the base address of the structure and applying an offset. I will confirm this. What CCS version are you uaing?

    Thanks
    ki
  • Hello Ki,

    I am using CCS version 6.1.2 and compiler version v6.4.6.

    Thanks

    Fei