Choosing Between __delay_cycles Intrinsic and delay_ms() for Deterministic Timing on Low‑Memory MCUs
Goal Achieve cycle‑accurate delays on a low‑memory MCU while keeping the flash footprint below the device limit. Constraints Compiler 2.0 introduces __delay_cycles intrinsic; version 1.5 lacks it, causing compile errors if used. At -O0 the compiler does not fold constants, so a manual cycle loop expands and may exceed flash. Higher optimizations ( -O2 ) can