This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: G++ structure member alignment


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]