Small Device C Compiler

From Handwiki

Small Device C Compiler
Developer(s)Sandeep Dutta and others
Stable release
4.3.0 / July 7, 2023; 12 months ago (2023-07-07)
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. As of March 2007, SDCC is the only open-source C compiler for Intel 8051-compatible microcontrollers.[2][3]Cite error: Closing </ref> missing for <ref> tag

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:

  • Intel 8031, 8032, 8051, 8052; Maxim/Dallas DS80C390; C8051
  • Motorola/Freescale/NXP 68HC08 and S08
  • Padauk PDK14 and PDK15[4]
  • Sharp SM83, the CPU found in the Nintendo Game Boy LR35902 SoC
  • STMicroelectronics STM8
  • Zilog Z80, Z180, eZ80 in Z80 mode; Rabbit Semiconductor 2000, 2000A, 3000, 3000A, 4000; Toshiba TLCS-90; Z80N (ZX Spectrum Next processor), R800.
  • MOS Technology 6502, WDC 65C02.

Work in progress:

  • Microchip PIC16 and PIC18.[5]
  • Padauk PDK13.

Obsolete:

  • AVR microcontrollers use 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. According to a Google search for: 8051 open source C compiler
  3. Lewin Edwards "Open-Source Robotics and Process Control Cookbook: Designing and Building Robust, Dependable Real-time Systems". 2011. p. 15.
  4. Padauk website
  5. "SDCC - Small Device C Compiler". http://sdcc.sourceforge.net/. 

External links

  • SDCC homepage
  • Sandeep Dutta - Anatomy of a Compiler. A Retargetable ANSI-C Compiler. "Circuit Cellar", issue 121, August 2000, page 35
  • SDCC Open Knowledge Resource
  • SDCC Open Knowledge Resource
  • FOSDEM 2015 presentation on SDCC
  • A port of FreeRTOS to 8051
  • Using SDCC on the AT89C52 (8051 derivative)
  • Using SDCC for PIC on Windows with MPLABX



Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Small_Device_C_Compiler&oldid=3463216"

Categories: [Cross-compilers] [Free compilers and interpreters]


Download as ZWI file | Last modified: 11/15/2024 02:30:33 | 4 views
☰ Source: https://handwiki.org/wiki/Software:Small_Device_C_Compiler | License: CC BY-SA 3.0

ZWI is not signed. [what is this?]