0___________
0___________

Reputation: 67476

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.

Upvotes: 1

Views: 449

Answers (1)

user786653
user786653

Reputation: 30450

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

Upvotes: 3

Related Questions