This is the mail archive of the
mailing list for the GCC project.
hc11/12 port extension to s12x
- From: James Murray <jsm at jsm-net dot demon dot co dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 18 Mar 2008 22:58:47 +0000
- Subject: hc11/12 port extension to s12x
(First post to gcc mailing list)
I have been making use of the Freescale (Motorola) HC11/12 functionality
within gcc and binutils on the 9S12C64 target.
I plan to extend gcc to cover the newer S12X CPU as the existing
compiler only utilises the S12 subset. Is anyone working on this
Hopefully I will be working on this with a colleague Ken Culver and we
would aim to have some code by the middle of the year. I contacted the
existing maintainer of the HC11/12 port Stephane Carrez, but he does not
have the time to actively work on it.
Additionally I have extended binutils-2.18 to cope with S12X and the
XGATE co-processor used in chips like the 9S12XD and 9S12XE families. My
code does appear to work but needs a good cleanup and more testing
before it is ready for submission.
( http://www.jsm-net.demon.co.uk/xgate )
I have attempted to build gcc-4.3.0 with --target=m6812-elf and using
plain binutils-2.18 built with the same target, prefix and program
prefix as gcc, however gcc fails:
../../../gcc-4.3.0/libgcc/../gcc/libgcc2.c: In function â__negdi2â:
../../../gcc-4.3.0/libgcc/../gcc/libgcc2.c:80: internal compiler error:
I believe I have attempted to build it correctly as the same configure
options passed to a gcc-3.3.6 (with Stephane Carrez's patches applied)
My host compiler reports:
[jsm@jsm2 ~]$ gcc -v
Using built-in specs.
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)