G++ structure member alignment

Baruch Lifshitz baruchli@gmail.com
Wed Feb 14 08:38:00 GMT 2007


By the way, switch "-fpack-struct" do the job as well.

Baruch.

On 2/13/07, John Love-Jensen <eljay@adobe.com> wrote:
> Hi Baruch,
>
> You can use the __attribute__ qualifier to specifying packing and alignment
> constraints on your struct.
>
> Here's the documentation:
>
> http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Type-Attributes.html
>
> See the sections on aligned and packed.
>
> HTH,
> --Eljay
>
>



More information about the Gcc-help mailing list