structs in MAP-file

Guest #1921926
Rate this post
• ▲ useful
▼ not useful
Hi,

Is there a way to get more information of struct members name, address 
and size in the MAP-file? Today I only get the struct variable name and 
its address.

typedef struct
{
    u16_t member1;
    u16_t member2;

} test_t;

extern volatile test_t test_parameters;

mapfile today
"COMMON         0x2000032c       0x?? C:\parameters.o
                0x2000032c                test_parameters
                0x200003??                . = ALIGN (0x4)
                0x200003??                _ebss = .
                0x200003??                PROVIDE (end, _ebss)
                0x200003??                PROVIDE (_end, _ebss)"

I'm using Ride 7 and GCC.

Best regards

Mattias
Guest #1921959
Rate this post
• ▲ useful
▼ not useful
> Is there a way to get more information of struct members name,
> address and size in the MAP-file? Today I only get the struct
> variable name and its address.

Ususally not, since all structure member accesses are already completely 
resolved by the compiler, when the linker sees the individual parts and 
creates the map file.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.