Steve Bennett <[EMAIL PROTECTED]> wrote:

> Joerg Schilling wrote:
> > Did  you test with a recent GCC using 
> > 
> > #pragma pack(1)
> > 
> > I would expect that this also results in reduced sizes.
>
> Yes, I certainly have tested it (and Steve said he had too).
> It does not work.

"Does not work" does not really help.....

> > <nslu2> gcc -dumpversion
> > 4.0.3
>
> Which is just about as recent as it gets.
>
> I believe that #pragma pack(1) affects inter-field padding,
> but does not affect padding at the end of structures.

>From the forst text from you, I asume that the problem is that the size
of char[4] is not 4 but 16.


So where is the real problem?

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to