Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:sdcc [2014/12/29 15:04] – [Raspberry Pi] darrontools:sdcc [2017/01/11 16:39] (current) darron
Line 1: Line 1:
 ==== sdcc: Small Device C Compiler ==== ==== sdcc: Small Device C Compiler ====
 +
 +sdcc is a C compiler for various microprocessors and micro-controllers including 8-bit PICMicros.
  
 == release == == release ==
Line 21: Line 23:
 make install make install
 sdcc -v sdcc -v
-SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.4.#8964 (Mar 30 2014) (Linux)+SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.#9820 (Linux)
 published under GNU General Public License (GPL) published under GNU General Public License (GPL)
 </code> </code>
Line 27: Line 29:
 == SVN update == == SVN update ==
 <code> <code>
 +cd /usr/src/sdcc-svn
 svn update svn update
 cd sdcc cd sdcc
Line 34: Line 37:
 make install make install
 sdcc -v sdcc -v
-SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.4.#9063 (Aug 29 2014) (Linux)+SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.#9820 (Linux)
 published under GNU General Public License (GPL) published under GNU General Public License (GPL)
 </code> </code>
  
-==== Raspberry Pi =====+=== Raspberry Pi ===
  
 == Install gputils == == Install gputils ==
Line 44: Line 47:
  
 == Enter emulator == == Enter emulator ==
-[[tools:raspbian|Debian Raspbian]]+[[tools:raspbian-emu|Raspbian emulator]]
  
 == Build sdcc == == Build sdcc ==
Line 53: Line 56:
 [[tools:nfs|NFS]] [[tools:nfs|NFS]]
  
-== Install on RPi ==+== Install (Eg. sdcc SVN) on RPi ==
 <code> <code>
-cd /embedded/raspbian/usr/src/gputils-svn/gputils 
-make install 
 cd /embedded/raspbian/usr/src/sdcc-svn/sdcc cd /embedded/raspbian/usr/src/sdcc-svn/sdcc
-ln -/embedded/raspbian/usr/src/sdcc-svn/ /usr/src/+ln -sf /embedded/raspbian/usr/src/sdcc-svn/ /usr/src/
 make install make install
 </code> </code>
  
-==== Windows ====+The symbolic link above is important for installation due to an unknown bug in the build process.
  
-Install http://sf.net/projects/sdcc/files/sdcc-win32/3.3.0/sdcc-3.3.0-setup.exe/download+=== 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). When installation ends add sdcc to the PATH in the dialog box (default).