Home
Syllabus
Homeworks
Announcements
Links
Documents |
-
SDCC is a Freeware, retargettable, optimizing ANSI - C compiler that targets the Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08 based MCUs. Work is in progress on supporting the Microchip PIC16 and PIC18 series. The entire source code for the compiler is distributed under GPL.
-
Project web site: http://sdcc.sourceforge.net/
-
See the Sourceforge download page for the last released version including source and binary packages for Linux/x86, Linux/Opteron (AMD64), Linux/Alpha, Linux/IBM Power5, Mac OS X/PPC, SUN Solaris/Sparc and 32 bit Microsoft Windows. For Windows machines do not forget to accept the following message:
- There are also snapshot builds which are automatically updated from the developmental
code in the Subversion repository. They are not official releases and may not even work at all if a serious bug was introduced during development. Therefore, do not make your homeworks using any snopshot build of SDCC. Use only the official release. Currently, the newest version is 2.6.0.
- After downloading and installing SDCC replace the header file and library file for PIC16F877 with these files: pic16f877.h, pic16f877.lib
For Windows machines,
header files are located under "C:\Program Files\SDCC\include\pic" and library files are located under "C:\Program Files\SDCC\lib\pic" after default installation.
For Linux machines, the locations are "/usr/share/sdcc/include/pic" and "/usr/share/sdcc/lib/pic", correspondingly.
- SDCC has a complete manual available at http://sdcc.sourceforge.net/doc/sdccman.html/ as html format. Pdf version is also available.
-
SDCC needs gputils or MPLAB to be installed on your system. By default, it uses gputils to compile .asm files. Therefore, download and install gputils from https://sourceforge.net/project/showfiles.php?group_id=41924. For Windows machines do not forget to accept the following message whileinstalling gputils:
For more information about gputils, see the project web site.
- You may test your SDCC installation using recitation 5 sample program. In order to compile the file give "sdcc -mpic14 -p16f877 rec05.c" command while "rec05.c" is in the current directory.
|