packed struture
Claudio Bley
bley@mail.cs.uni-magdeburg.de
Wed Oct 17 00:22:00 GMT 2001
>>>>> "Emmanuel" == Emmanuel Hosti <Emmanuel.Hosti@alcatel.fr> writes:
Emmanuel> Hello,
Emmanuel> With Diab Data , we have possibility to packe a structure :
Emmanuel> packed struct { unsigned long toto; unsigned char titi;
Emmanuel> unsigned long tutu; } struct_packed;
Emmanuel> How can i packe a structure with gcc
Emmanuel> Regards Emmanuel
To quote from `info gcc`:
struct foo {
int x;
char a, b, c, d;
} __attribute__((packed));
Claudio
More information about the Gcc-help
mailing list