The SpartanMC SoC-Kit provides a cross-toolchain based on GCC
4.4.5 and BinUtils 2.21. This cross-toolchain is not included in
the SpartanMC SoC-Kit repository but binaries for assorted Linux
distributions are available on this website. For other operation
systems the sources for GCC and BinUtils are available on separate
svn-repositories.
Download and Installation
Download and Installation
We provide an archive (*.tar.gz) of GCC and BinUtils binaries
compatible for Ubuntu, Fedora or CentOS distributions. The binaries
were build on Fedora (64 bit) and CentOS (32 bit) and can be
used within the infrastructure of your distribution.
Installation
The installation can be carried out by extracting both achives
(BinUtils and GCC) in a arbitrary folder, e.g.
/usr/local
by using the following commands (this may require root privileges):
- tar -zxvf <gcc_archive>.tar.gz -C /usr/local
- tar -zxvf <binUtils_archive>.tar.gz -C /usr/local
If you used
/usr/local as installation path you
can access the tools within the standard environment. Otherwise,
you have to export the paths of the tools to your environment or
adapt your
.bashrc file in your home directory:
- export PATH=$PATH:</path/to/gcc>/bin
- export PATH=$PATH:</path/to/binUtils>/bin
Datatypes
Datatypes
The following table gives an overview about supported datatypes and
their bitwidth:
Datatyp |
Length in Bit |
Size on Stack |
Supported |
char |
9 |
1 |
Yes |
short |
16 |
2 |
Yes |
int |
18 |
2 |
Yes |
long |
36 |
4 |
Yes (alpha) |
long long |
72 |
8 |
No |
float |
36 |
4 |
No |
double |
72 |
4 |
No |
pointer |
18 |
2 |
Yes |