attribute ((packed)) on variables

Christian Häggström 97nv46@skola.kiruna.se
Fri Apr 14 02:00:00 GMT 2000


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?



More information about the Gcc mailing list