attribute ((packed)) on variables

Christian Häggström 97nv46@skola.kiruna.se
Wed Apr 12 05:46:00 GMT 2000


neither of the following declarations changes the alignment; gcc forces a 32-byte align:

 char name[33] __attribute__((aligned(1)));
 char name[33] __attribute__((packed));

My question is: Is there any way to (mis)align objects larger than 32 byte?

I use gcc 2.95.2 on a pentium.



More information about the Gcc mailing list