This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: packed struture
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: packed struture
- From: Claudio Bley <bley at mail dot cs dot uni-magdeburg dot de>
- Date: Wed, 17 Oct 2001 09:23:47 +0200
- References: <C1256AE8.00266DE5.00@frmta01.netfr.alcatel.fr>
>>>>> "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