On 2012-04-17, Grant Edwards <grant.b.edwa...@gmail.com> wrote:
> On 2012-04-17, JMGross <msp...@grossibaer.de> wrote:
>
>> Access to word members inside a packed struct is NOT done as a word
>> read/write, but through a rather complex chainof operation, because
>> the alignment of the struct and therefore of the member is unknown.
>
> Why is the alignment of a structure member unkown?
>
> Unless the structure is packed, the alignemnt should be known.

Actually, now that I think about it, the alignment of fields in packed
structures is known as well: bitfields are aligned on bit boundaries,
everyting else is aligned to byte boundaries.

-- 
Grant Edwards               grant.b.edwards        Yow! It don't mean a
                                  at               THING if you ain't got
                              gmail.com            that SWING!!


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to