Menu

#24 Add support for custom gcc execs

open
nobody
None
5
2006-10-10
2006-10-10
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.