Hi,
I am testing aligned attribute of variable.
It is working if I aligned variable "x" to 16 bytes and able to see in map file (0xc + 0x4 = 16)
But when I trying to align the variable to 64 , it aligned only to 32 bytes(0x1c + 0x4 = 32)
why it is not aligned to 64 bytes?? Is maximum alignment value 32 bytes??
Thanks
Kishore
Hi,
yes, there is linker limitation for maximal alignment size. GCC provides __BIGGEST_ALIGNMENT__ macro.
You can find more details in gcc documentation:
https://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Type-Attributes.html