Jump to content

Small Device C Compiler

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 87.92.1.189 (talk) at 16:58, 28 September 2024 (remove reference to google search; add a reference from another book; "only" => "popular"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Small Device C Compiler
Developer(s)Sandeep Dutta and others
Stable release
4.4.0 / January 29, 2024; 16 months ago (2024-01-29)
Repository
Operating systemMicrosoft Windows, macOS, GNU/Linux
TypeC compiler
LicenseGPL
Websitesdcc.sourceforge.net

The Small Device C Compiler (SDCC) is a free-software, partially retargetable[1] 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 Intel 8051-compatible microcontrollers.[2][3] [4] In 2011 the compiler was downloaded on average more than 200 times per day.[5]

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-based systems
  • cc65 - C compiler for 6502/65C02 systems

References

  1. ^ Rainer Leupers, Peter Marwedel: "Retargetable Compiler Technology for Embedded Systems: Tools and Applications", page 126. Springer, 2001
  2. ^ Lewin Edwards "Open-Source Robotics and Process Control Cookbook: Designing and Building Robust, Dependable Real-time Systems": "Worse still, the only halfway decent open-source C compiler for the 8051 (sdcc) is exactly that—only halfway decent." 2005. p. 15.
  3. ^ De-Shuang Huang, Phalguni Gupta, Xiang Zhang, Prashan Premaratne. "Emerging Intelligent Computing Technology and Applications". 2012. p. 383.
  4. ^ Lewin A. R. W. Edwards (2006). So, You Wanna be an Embedded Engineer: The Guide to Embedded Engineering, from Consultancy to the Corporate Ladder. p. 51.
  5. ^ SourceForge. "Usage Statistics For Small Device C Compiler". Retrieved 2010-02-16.
  6. ^ Padauk website
  7. ^ "SDCC - Small Device C Compiler". Retrieved 2013-01-20.