This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: attribute ((packed)) on variables
- To: <meissner at cygnus dot com>
- Subject: Re: attribute ((packed)) on variables
- From: "Christian Häggström" <97nv46 at skola dot kiruna dot se>
- Date: Fri, 14 Apr 2000 10:37:12 +0200
- Cc: <gcc at gcc dot gnu dot org>
char name[33] __attribute__((aligned(1)));
char name[33] __attribute__((packed));
>> Is there any way to misalign objects larger than 32 byte?
>Not in 2.95.2. If you download the current snapshot it will work.
I compiled above code online at http://www.codesourcery.com/gcc-compile.html
but I still get code like:
.comm 33,32
or
.data
.align 32
Any suggestions?