Eclipse for SDCC

Although I use MIDE-51 as a major IDE, I still seek for the best (free) IDE for developing Microcontroller Programming. The combination of Eclipse, CDT and SDCC is an alternation tools for 8051 Microcontroller C Programming.

Eclipse is an open source community whose projects are focused on building an open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. Eclipse is used for Enterprise Development, Embedded and Device Development, Rich Client Platform, Application Frameworks and Language IDE.

The CDT is Eclipse’s C/C++ Development Tooling project. It is an industrial strength C/C++ IDE that also serves as a platform for others to provide value added tooling for C/C++ developers.

The eclipseSDCC project aims to provide full support for the open source Small Device C Compiler (SDCC) from within the eclipse/CDT development environment. This allows embedded ‘C’ applications for 8051 and Z80 devices to be developed using the fully featured eclipse IDE. EclipseSDCC supports CDT managed make projects. In managed make projects CDT manages the build process by creating and maintaining the underlaying makefiles. CDT keeps track of source dependencies and can automatically rebuild the target when needed.

To install (for Windows)

  1. It requires Java Runtime Environment (JRE), I download only JRE not SDK and install it.
  2. Downlaod Eclipse SDK 3.2.1 for Windows (120 MB) and extract it to c:/eclipse. In the directory it contains eclipse.exe which is an executable.
  3. Download CDT 3.1.1 (September 29, 2006) and extract it c:/eclipse, this will prompt to replace plugins and features directory.
  4. If you have already installed SDCC for Window, skip this step. If you have no SDCC installed, read this first.
  5. Download eclipseSDCC-1.0.0, when you extract the file, it contains plugins and features directory. Copy the two direct to c:\eclipse.

Now the installation have been completed and you can find its manual in c:/eclipse/plugins/net.sourceforge.eclipsesdcc_1.0.0/help/index.html.

Eclipse for SDCC is quite large when compared it MIDE-51. However, you can manage project in Eclipse whereas MIDE-51 still have no this feature in the present version. Here is a screen shot, you should see this dialog.

Related Links

Share this:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google
  • Live
  • YahooMyWeb
  • Reddit
  • Technorati

Related Posts

14 Responses to “Eclipse for SDCC”

  1. Can i know what the limitation code generate by SDCC??? If i’m using KEIL its only 2K byte…

  2. SDCC is free and opensource C Compiler under GPL license with no limitation of code size. You can compile the code as large as your hardware supported.

  3. Thank you… i will try to migrate to sdcc…

  4. One more thing… after the compilation… i was get the hex or ihx is bigger than if i’m using keil… any comment to avoiding generate the large file?

  5. Yes! SDCC is not better than Keil. Everyone have complained about this. But personal reason: sdcc is suitable for student with limit of budget or a hobbyist.

  6. OoOOOO… Thank you…

  7. is there any graphical simulator open source as keil? can i integrat it with eclipse?
    thank you for very nice post

  8. As I know, there are no graphical simulator which can be integrated to eclipse. However, there are free stand-alone graphical simulators (for 8051): Jsim-51 and edSim-51

    They are pretty good for a freeware. If you are interested, please follow the link.

  9. frist thank you very much for very nice blog .
    can i ask: if sdcc reliable for commercial application ?

  10. SDCC is licensed under GNU GENERAL PUBLIC LICENSE Version 2, June 1991. It is the copyleft that only applies to the software and not to its output (unless that output is itself a derivative work of the program). In this case, you can sell .hex files or your code which can be compiled by SDCC, but you can not sell SDCC itself. See here, for reference.

  11. ok i know what you say thank you very much :).

    but i ask another question :
    i want to develop code for products using sdcc can i trust sdcc in this mission ?

  12. Although I encourage people to use freeware, sdcc can not guarantee the successful. The resource about sdcc is rare. My suggestion is using commercial complier like Keil C. They have many online supports. By using sdcc, you can also fulfill your mission but you must work hard. If you are strong in ANSI-C programming, using sdcc will be efficient for your work and reduce your budget.

  13. Hi All !

    I´m work with any types of uC´s and would like to use SDCC to integrate many programs into one IDE.
    After install the Eclipse-SDCC, I can work with MCS51 only.
    This is my question: what about the PIC and HC908 ?
    Can I configure the Eclipse-SDCC to work with these uC´s ?

  14. Embedded Programmer on July 29th, 2007 at 11:54 pm

    Hi Cicero,

    I also have never tried Eclipse-SDCC on PIC and HC908. However, if SDCC supports PIC and HC908, Eclipse-SDCC doesn’t matter. You can write the code for PIC and HC908. Eclipse works as an IDE, not compiler.

Leave a Reply