On 5 March 2012 06:04, Jeffrey Walton wrote: > Does C/C++ or GCC offer any alignment guarantees? Alignment requirements are implementation-defined, usually imposed by the hardware. C++ and GCC guarantee that data you declare or dynamically allocate will be correctly aligned, they don't guarantee that playing tricks with casts will produce correctly aligned data, whether that works depends on the hardware.