| |||
| Home > Compiler Coding Practices > The __packed qualifier and unaligned data access in C and C++ code | |||
The __packed qualifier sets the alignment
of any valid type to 1. This enables objects of packed type to be
read or written using unaligned access.
Examples of objects that can be packed include:
structures
unions
pointers.
Compiler Reference: