This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于__attribute__((packed))

今日在c2000上移植一个程序包,程序包里大量使用了__attribute__((packed)),一直不能通过编译,非常的疑惑,查询手册以后发现手册上有如下说明“The packed attribute is supported for struct and union types. It is supported on all ARM targets if the --relaxed_ansi option is used. See the description of the --unaligned_access option for more information on how the compiler accesses unaligned data.”,现在问题来了

1、c2000的编译器支不支持__attribute__((packed))

2、如果c2000编译器不支持这个GNU扩展那么有没有相类似的表达方式

盼复!!!