Cross-Compiler for TS 7200
==========================

These are the instructions that I used to build the gcc cross compiler (and
gdb).  You will have to adjust path names to suit your needs.  You will find
source packages on your friendly neighbourhood GNU mirror (e.g. 
`http://mirror.csclub.uwaterloo.ca/`) and newlib at `http://sourceware.org/newlib/`

```
cd /tmp
mkdir gcc-source
cd gcc-source
tar xaf ~/download/newlib-3.1.0.tar.gz --strip-components 1
tar xaf ~/download/binutils-2.32.tar.xz --strip-components 1
tar xaf ~/download/gcc-9.2.0.tar.xz --strip-components 1
tar xaf ~/download/gmp-6.1.2.tar.xz; mv gmp-6.1.2 gmp
tar xaf ~/download/mpc-1.1.0.tar.gz; mv mpc-1.1.0 mpc
tar xaf ~/download/mpfr-4.0.2.tar.xz; mv mpfr-4.0.2 mpfr
cd ..
mkdir gcc-build
cd gcc-build
../gcc-source/configure --prefix=/u/cs452/public/xdev --target=arm-none-eabi --with-float=soft --disable-threads --with-newlib --enable-languages=c,c++
make -j $(nproc)
make install
cd ..
rm -rf gcc-source gcc-build
tar xaf ~/download/gdb-8.3.tar.xz
mkdir gdb-build
cd gdb-build
# ../gdb-8.3/configure --prefix=/u/cs452/public/xdev --target=arm-elf
../gdb-8.3/configure --prefix=/u/cs452/public/xdev --target=arm-none-eabi
make -j $(nproc)
make install
cd ..
rm -rf gdb-8.3 gdb-build
```
