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.
今日在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扩展那么有没有相类似的表达方式
盼复!!!
昨晚查了下编译器的手册其中有一段描述如下“6.15.4 Type Attributes The following type attributes are supported: aligned, deprecated, transparent_union, and unused.”,貌似__attribute__((packed))属性不能使用在c2000上面,c2000上有办法压缩结构体的存储空间吗?