Hello,
I have declared below variables as a global variables :
extern uint16 A_u16;
extern float32 B_u16;
extern uint16 C_u16;
extern uint16 D_u16;
And below is the excerpt from the map file for it.
00001f78 - A_u16 - 4 Bytes
00001f7c - B_f32 - 4 Bytes
00001f80 - C_u16 - 2 Bytes
00001f82 - D_u16 - 2 Bytes
Here the size allocated for float32 is 4 bytes and the size allocated for third and fourth uint16 variables is two bytes whereas for the first uint16 variable is 4 bytes.
I want to know the reason and the way memory is organised in such cases.
I am using CCS 5.4 with TI-4.9.5 as the compiler and be32 endianness.
Thanks in advance.
Regards,
Manoj