Search code examples
cgccarmpragma

arm-none-eabi-gcc does it support #pragma pack(n)


I usually use __attribute__... packing but actually I port an embedded STM32 project from he IAR to gcc. My question is if gcc supports those pragmas or they are just ignored.


Solution

  • GCC supports them (verified with compiler explorer) and have since at least GCC 4.4.4.