##
2.4.1 Building SDCC on Linux

1. Download the source package either from the SDCC Subversion repository or from snapshot builds, it will be named something like sdcc-src-yyyymmdd-rrrr.tar.bz2 `http://sdcc.sourceforge.net/snap.php`.
2. Bring up a command line terminal, such as xterm.
3. Unpack the file using a command like: tar -xvjf sdcc-src-yyyymmdd-rrrr.tar.bz2”, this will create a sub-directory called sdcc with all of the sources.
4. Change directory into the main SDCC directory, for example type: cd sdcc.
5. Type ./configure. This configures the package for compilation on your system. When the treedec library is available, it should be found and used automatically (improving the compilation time / code quality trade-off). As of SDCC 3.7.0, the current develop branch from https://github.com/freetdi/tdlib is a suitable version of treedec.
6. Type make. All of the source packages will compile, this can take a while.
7. Type make install as root. This copies the binary executables, the include files, the libraries and the documentation to the install directories. Proceed with section 2.7.