ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
20 апреля
1021236 Топик полностью
LightElf (27.07.2020 00:03, просмотров: 590) ответил fk0 на Подразумевается areas из стандарта C, а не вообще всё реализованное компилятором.
Большинство приличных компиляторов документируют свои расширения и их особенности. Вот что пишет IAR: 
The #pragma pack directive affects declarations of structures following the pragma directive to the next #pragma pack or the end of the compilation unit. Note: This can result in significantly larger and slower code when accessing members of the structure. Use either _ _packed or #pragma pack to relax the alignment restrictions for a type and the objects defined using that type. Mixing _ _packed and #pragma pack might lead to unexpected behavior.

И все вполне работает. А компилятор не умничает, а выдает диагностику.

Не надо делать мне как лучше, оставьте мне как хорошо