This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: packed struture


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]