How to pack the following struct in x86?
yinliyin@zte.com.cn
yinliyin@zte.com.cn
Thu Mar 21 02:10:00 GMT 2002
Hi all,
Is there any method in gcc that could pack the structs followed? Just
like in VC. (Target is intel x86)
#pragma pack(1)
typedef struct tagTPackStruct
{
int i;
char ch;
int ii;
} TPackStruct;
/* other pack struct */
......
#pragma pack()
typedef struct tagTPackStruct
{
int i;
char ch;
int ii;
} TNoPackStruct;
/* Other no pack struct */
......
More information about the Gcc
mailing list