GCC

Rupert Wood me@rupey.net
Fri Oct 11 05:13:00 GMT 2002


Bruno Aulagner wrote:

> I'm new to Linux and GCC, and I need to compile a code with a 1 byte
> structure alignment... I found no options allowing this... 
> How can I do it ?

You can add __attribute__((packed)) to a structure definition

    http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attributes.html

I don't think there's a switch to do this globally (or at least I don't
see one).

Rup.



More information about the Gcc-help mailing list