Hi, Please find the attached patch "cr16-gcc.patch" that adds compiler support for National Semiconductor's CR16 Architecture. The following link provides an insight into previous attempts, http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01806.html These sources have been updated and enhanced to suit latest version of gcc branch. The binutils and gdb-sim support were added at the following links http://sourceware.org/ml/binutils/2007-06/msg00260.html http://sourceware.org/ml/gdb-patches/2008-02/msg00253.html Newlib support for this target was added recently by KPIT and the patches have been accepted in latest sources, http://sourceware.org/ml/newlib/2010/msg00596.html CR16 target port characteristics: | Characteristics Target | HMSLQNFICBD lqrcpfgmbdates ---------+--------------------------- cr16 | L FI l cp g The CR16 compiler has been validated against gcc-testsuite. I will submit the results to gcc-testsuite mailing list soon. Please review the patch and let me know if there should be any modifications in it. gcc/ChangeLog: -------------- 2010-12-21 Sumanth G Jayant R Sonar * config.gcc: Add cr16-* support. * doc/extend.texi: Document cr16 extensions. * doc/install.texi: Document cr16 install. * doc/invoke.texi: Document cr16 options. * doc/md.texi: Document cr16 constraints. * config/cr16/cr16.c: New file. * config/cr16/cr16.h: New file. * config/cr16/cr16.md: New file. * config/cr16/cr16.opt: New file. * config/cr16/cr16-libgcc.s: New file. * config/cr16/cr16-protos.h: New file. * config/cr16/crti.s: New file. * config/cr16/crtlibid.s: New file. * config/cr16/crtn.s: New file. * config/cr16/divmodhi3.c: New file. * config/cr16/predicates.md: New file. * config/cr16/t-cr16: New file. * config/cr16/unwind-dw2-cr16.c: New file. * config/cr16/unwind-dw2.h: New file. libgcc/ChangeLog: ----------------- 2010-12-21 Sumanth G Jayant R Sonar *config.host: Add National Semiconductor CR16 target (cr16-*-*). libstdc++-v3/ChangeLog: ----------------------- 2010-12-21 Sumanth G Jayant R Sonar *configure: Add National Semiconductor CR16 target (cr16-*-*). *crossconfig.m4 : Add support for National Semiconductor CR16 target. ChangeLog: ---------- 2010-12-21 Sumanth G Jayant R Sonar * config.sub: Add National Semiconductor CR16 target. * configure.ac: Add National Semiconductor CR16 target. * configure: Regenerate Thanks in advance, Sumanth G, KPIT Cummins Infosystems Limited, PUNE (India).