SDCC 4.6.0 brings C2y features to 8-bit microcontrollers

SDCC – Small Device C Compiler

SDCC, the retargetable optimizing C compiler for 8-bit MCUs, released version 4.6.0 with C2y features like _Countof and if-declarations, plus improved Z80 code generation. The project also secured funding from NGI0 Commons Fund and Sovereign Tech Fund to enhance target support, add link-time optimization, and improve security for embedded firmware.

Having funding available for working on SDCC is IMO really helpful in these situations - instead of having to stop work on SDCC to go back to other paid work, I can just keep working on the feature or bug, since this then is paid work.
  1. woadwarrior01

    I have fond memories of using it for PIC16 as a teenager, ~25 years ago. It was a huge step up from writing assembly. My parents bought me a Microchip PICSTART Plus, but refused to pay for a Hitech-C compiler license. :)

  2. sehugg

    I initially added the MOS 6502 support by hacking the HC08 backend. It was awful, someone else (Gabriele Gorla) cleaned it up and got it merged to the mainline. There are other options these days for optimized 6502, like llvm-mos or Oscar64.

  3. blackfawn

    SDCC has been a nice resource for a variety of MCUs. I wish it had support for some of the 8-bit PIC chips like the PIC10 and PIC12... maybe one day!

  4. dmitrygr

    SDCC has the best OSS 8051 compiler. It is buggy as hell, but it is free. Sometimes that is good enough.

  5. jrmg

    I wonder if this is the most active (or last?...) still-under-development project on SourceForge?

More from this day

2026-09-19