This is the mail archive of the gcc@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]

Re: packed, aligned


> To: Dennis Bjorklund <db@zigo.dhs.org>
> Cc: <gcc@gcc.gnu.org>
> From: Graham Murray <graham@gmurray.org.uk>
> Date: 11 Feb 2001 11:20:26 +0000

> Dennis Bjorklund <db@zigo.dhs.org> writes:

> > Why would someone want to pack a struct and still have some padding in the
> > end?

> So that in an array of structures, each structure starts on an
> appropriate boundary. 

And byte aligned structures need only byte aligned boundaries, which
means zero padding.  All structures can be changed to be byte aligned
by the addition of attributes.


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