- 论坛徽章:
- 20
|
回复 9# karma303
不好意思,用词不严格,MSbit/LSbit可能会更准确一些吧。
找了一份C标准,只提到
An implementation may allocate any addressable storage unit large enough to hold a bit-
field. If enough space remains, a bit-field that immediately follows another bit-field in a
structure shall be packed into adjacent bits of the same unit. If insufficient space remains,
whether a bit-field that does not fit is put into the next unit or overlaps adjacent units is
implementation-defined. The order of allocation of bit-fields within a unit (high-order to
low-order or low-order to high-order) is implementation-defined. The alignment of the
addressable storage unit is unspecified.
好吧,implementation-defined。 |
|