musl libc

musl libc is a free, lightweight libc implementation intended for use on embedded systems. musl weighs in at 462kB for a full .a library (compared to glibc's 2MB), making musl an attractive option. (See the libc comparison data here) If you need a complete libc implementation for your system, this is an excellent place to …

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 …