Building our toolchain is easy:
We use a GNU toolchain and require patches against binutils, gcc and gdb
for our processor architecture. We currently investigate forward porting
of these patches to more current versions.
Note: 1) the root makefile handles all of this
2) GCC does not work correctly on 64 bit platform
It appears that it generates 64 bit values, but the C33 is onl 32 bit
so the result cannot work, it normally fails in the assemble stage
I thing that the host bits/word and target bits/word are mixed somewhere
(Presently just use 32 bit Linux in VM, chroot or schroot)
Bintuils:
(It is assumed that $PWD/README is this file)
- Grab binutils 2.10.1 from ftp://ftp.gnu.org/gnu/binutils/binutils-2.10.1.tar.gz
- tar -xvzf binutils-2.10.1.tar.gz
- cd binutils-2.10.1
- cat ../patches/0001-binutils-EPSON-changes-to-binutils.patch | patch -p1
- cat ../patches/0002-binutils-EPSON-make-it-compile-hack-for-recent-gcc.patch | patch -p1
- mkdir build
- cd build
- CPPFLAGS="-D_FORTIFY_SOURCE=0" ../configure --prefix $PWD/../../install --target=c33-epson-elf (tab complete the path)
- make
- make install
GCC:
(It is assumed that $PWD/README is this file)
- export PATH=$PWD/install/bin:$PATH
- Grab gcc 3.3.2 from ftp://ftp.gnu.org/gnu/gcc/gcc-3.3.2.tar.gz
- tar -xvzf gcc-3.3.2.tar.gz
- cd gcc-3.3.2
- cat ../patches/0001-gcc-EPSON-modified-sources.patch | patch -p1
- cat ../patches/0002-gcc-Force-that-the-assembly-of-libgcc-complies-wit.patch | patch -p1
- cat ../patches/0003-gcc-Use-the-C-implementations-for-division-and-mod.patch | patch -p1
- mkdir build
- cd build
- CPPFLAGS="-D_FORTIFY_SOURCE=0" ../configure --prefix $PWD/../../install --target=c33-epson-elf --enable-languages=c (tab complete the path)
- make
- make install
Gdb:
- TO BE DONE