Difference between revisions of "SDCC"

From DiLab
Jump to: navigation, search
(New page: [http://sdcc.sourceforge.net/ SDCC] - Small Devices C Compiler - is an open source compiler for Intel 8051 and several other architectures. As an alternative one could buy Keil or some ot...)
 
(Setup from source)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
This page has installation and other notes about SDCC.
This page has installation and other notes about SDCC.


== Setup from source ==
== Install from source ==


Make sure you have certain packages installed (on debian/Ubuntu)
Make sure that you have certain packages installed (on debian/Ubuntu):


sudo apt-get install bison flex libboost-dev gputils
sudo apt-get install bison flex libboost-dev gputils


To get the latest sdcc source version in the current directory, check out the SDCC repository and build it like this.
To get the latest sdcc source version in the current directory, check out the SDCC repository and build it like this:


svn co https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc sdcc
svn co https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc sdcc
Line 18: Line 18:
Respond to errors accordingly (you may need to install some support packages). Then:
Respond to errors accordingly (you may need to install some support packages). Then:


make clean
make
make
sudo make install
sudo make install

If all went well, check the installed version like this:

sdcc --version

Happy compiling!

Latest revision as of 01:31, 7 November 2011

SDCC - Small Devices C Compiler - is an open source compiler for Intel 8051 and several other architectures. As an alternative one could buy Keil or some other commercial compiler, but really, should you?...

This page has installation and other notes about SDCC.

Install from source

Make sure that you have certain packages installed (on debian/Ubuntu):

sudo apt-get install bison flex libboost-dev gputils

To get the latest sdcc source version in the current directory, check out the SDCC repository and build it like this:

svn co https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc sdcc
cd sdcc
./configure

Respond to errors accordingly (you may need to install some support packages). Then:

make clean
make
sudo make install

If all went well, check the installed version like this:

sdcc --version

Happy compiling!