Wikiwand AI

Small Device C Compiler

C compiler for microcontrollers From Wikipedia, the free encyclopedia

The Small Device C Compiler (SDCC) is a free-software, partially retargetable[2] C compiler for 8-bit microcontrollers. It is distributed under the GNU General Public License. The package also contains an assembler, linker, simulator and debugger. SDCC is a popular open-source C compiler for microcontrollers compatible with Intel 8051/MCS-51.[3][4][5]

DevelopersSandeep Dutta and others
Stable release
4.6.0[1] / June 22, 2026; 3 months ago (2026-06-22)
Quick facts Developers, Stable release ...
Small Device C Compiler
DevelopersSandeep Dutta and others
Stable release
4.6.0[1] / June 22, 2026; 3 months ago (2026-06-22)
Operating systemMicrosoft Windows, macOS, Linux
TypeC compiler
LicenseGPL
Websitesdcc.sf.net Edit this on Wikidata
Repository
Close

Version 4.6.0 added e.g. "C2y _Countof operator", octal, and if-declaration, "Conditional operator with omitted second operand (originally a GNU extension)"; C23 compound literals with storage class specifiers and "C23 constexpr (mostly)"[1]


Supported hosts

Sources, documentation, and binaries are available for Linux (32-bit and 64-bit), macOS (PPC and 64-bit), and Windows (32-bit and 64-bit).

Supported targets

The following include binary compatible derivatives:

Work in progress:

Obsolete:

  • AVR microcontrollers used to be a supported target, but was made obsolete by avr-gcc in 2010 (SDCC 3.0.0).

See also

  • Z88DK - C compiler for Z80 / 8080 / 8085 systems
  • cc65 - C compiler for 6502 / 65C02 systems

References

Related Articles

Timelines

Top Qs

Fact Checks