==== sdcc: Small Device C Compiler ====
sdcc is a C compiler for various microprocessors and micro-controllers including 8-bit PICMicros.
== release ==
cd /usr/src
wget http://downloads.sourceforge.net/project/sdcc/sdcc/3.3.0/sdcc-src-3.3.0.tar.bz2
tar jxvf sdcc-src-3.3.0.tar.bz2
cd sdcc-3.3.0
./configure --prefix=/usr/local --enable-libgc
make
make install
== SVN ==
cd /usr/src
svn checkout svn://svn.code.sf.net/p/sdcc/code/trunk sdcc-svn
cd sdcc-svn/sdcc
./configure --prefix=/usr/local --enable-libgc
make
make install
sdcc -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.5 #9820 (Linux)
published under GNU General Public License (GPL)
== SVN update ==
cd /usr/src/sdcc-svn
svn update
cd sdcc
find . -name "*.o" -delete
./configure --prefix=/usr/local --enable-libgc
make
make install
sdcc -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.5 #9820 (Linux)
published under GNU General Public License (GPL)
=== Raspberry Pi ===
== Install gputils ==
[[tools:gputils]]
== Enter emulator ==
[[tools:raspbian-emu|Raspbian emulator]]
== Build sdcc ==
Choose one the above methods, release, SVN, or SVN update.
== Mount emulator directory in RPi ==
[[tools:nfs|NFS]]
== Install (Eg. sdcc SVN) on RPi ==
cd /embedded/raspbian/usr/src/sdcc-svn/sdcc
ln -sf /embedded/raspbian/usr/src/sdcc-svn/ /usr/src/
make install
The symbolic link above is important for installation due to an unknown bug in the build process.
=== Cygwin ===
[[http://sf.net/projects/sdcc/files/sdcc-win32/3.3.0/sdcc-3.3.0-setup.exe/download|Install]]
When installation ends add sdcc to the PATH in the dialog box (default).