Packed struct/union amendments proposal


Subject: Packed struct/union amendments proposal
From: Kevin Cameron (Kevin.Cameron@nsc.com)
Date: Mon Jul 22 2002 - 11:51:51 PDT


Section 3.7

Structs -

1. Change "The first member specified is the most significant" to
    "The first bit of the first member specified is the most significant when the struct
    is treated as a whole. All data types are bit-aligned so that there is no automatic
    padding, and are stored with the most significant bit first.".

Unions -

2. Strike "Note that writing one member and reading another is independent of the
    byte ordering of the machine, unlike a normal union of normal structures, which
    are C-compatible and have members in ascending address order", and add
    "Since the memory layout of 4-value types is implementation dependent, it is not
    allowed to overlay 2-value data fields with 4-value data fields."

Kev.



This archive was generated by hypermail 2b28 : Mon Jul 22 2002 - 11:54:21 PDT