This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
attribute ((packed)) on variables
- To: <gcc at gcc dot gnu dot org>
- Subject: attribute ((packed)) on variables
- From: "Christian Häggström" <97nv46 at skola dot kiruna dot se>
- Date: Wed, 12 Apr 2000 14:45:03 +0200
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.