_pack

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

_pack

715 次查看
randyseedle
Contributor III

Other compilers use _pack to control memory layout in struct directives. Does NXP do anything like this or not? If yes can you provide an example.

标签 (1)
0 项奖励
1 回复

636 次查看
mjbcswitzerland
Specialist V

Hi

GCC uses __attribute__((__packed__)) to control packing in structs.

If you add a define

#define _pack      __attribute__((__packed__))

it will presumably make your code compatible with the other compiler that you have been using.

Regards

Mark

0 项奖励