IT lexicon › Programming › Embedded C

Embedded C

Programming På svenska → Updated: 2026-11-04

An ISO technical report proposing C extensions for microcontrollers: fixed-point types, separate address spaces and portable register access.

Standard C assumes a single flat address space and offers nothing between integers and floats. Embedded systems want both: an AVR reads constants from flash with different instructions than from RAM, and a DSP would rather compute in fractions than pay for an FPU it doesn't have. ISO/IEC TR 18037, published in 2004 and revised in 2008, describes the keywords _Fract, _Accum and _Sat for saturating fixed-point arithmetic, named address spaces, and an interface called iohw for peripheral registers.

It never made it into the C standard proper. GCC implements pieces — fixed-point on some targets, the __flash address space on AVR — while compilers such as IAR keep their own dialects. In practice firmware is still written in plain C with volatile pointers and vendor macros, which is exactly what the report set out to make unnecessary.

← Back to the lexicon