_pack

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

_pack

705件の閲覧回数
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 返信

626件の閲覧回数
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 件の賞賛