Generating Aligned Memory

Embedded systems often have requirements for pointer alignment. These alignment requirements exist in many places, some including: General device/CPU requirements Unaligned access may generate a processor exception with registers that have strict alignment requirements Cache line size You don’t want to accidentally perform clean/invalidate operations on random data Peripheral hardware requirements DMA and USB peripherals …