We use a cross-compiler for our embedded platform. The
compiler is provided to us by the manufacturer of the
board and the gcc tools are prefixed by the name
'powerpc-eabi-'. I have made a modified version of the
gcc unit to support this name. It would be nice to be
able to easily add support for custom GCCs, rather than
having to duplicate the GCC code every time.
My suggestion would be to have a properties file for
each GCC, that would then be read by a generic GCC
class. Something like:
#gcc variants recognised
gcc.variants=gcc,powerpc-eabi
#standard gcc
gcc.gcc=gcc
gcc.g++=g++
gcc.ld=g++
gcc.ld.option.prefix=
gcc.ld.option.full=
#eCos PowerPC EABI
powerpc-eabi.gcc=powerpc-eabi-gcc
powerpc-eabi.g++=powerpc-eabi-g++
powerpc-eabi.ld=powerpc-eabi-g++
powerpc-eabi.ld.option.prefix=-T
powerpc-eabi.ld.option.full=-msoft-float,-msoft-float