This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Steven Woody] M16C development using GCC, Is It Possible?
- From: DJ Delorie <dj at redhat dot com>
- To: narkewoody at gmail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 26 Oct 2005 20:57:27 -0400
- Subject: Re: [Steven Woody] M16C development using GCC, Is It Possible?
- References: <87mzkvg616.fsf@narke.yellow.line>
> i heard that gcc is also a cross-compiler, so i want to get know if
> it can be used as an M16C compiler?
Yes. The target you want to use to build gcc et al is "m32c-elf".
To compile for the m16c specifically, use "m32c-elf-gcc -mcpu=m16c ..."
> in GCC's home page, there is one item:
>
> 'July 20, 2005
> Red Hat Inc has contributed a port for the Renesas R8C/M16C/M32C families'
>
> what that really means?
It means that Red Hat Inc has modified gcc (and binutils and newlib)
to support the r8c/m16c/m32c family of processors from Renesas, and
given those changes to the FSF to be integrated into their official
sources.
gdb and a simulator are still in progress.
> and in this page
> 'http://a15177702.alturo-server.de/gcc-m16c/200504191111.html', it said, GCC
> M16C project is totally bugy.
That's a different attempt to port gcc to m16c, and has nothing to do
with what I did.
> (BTW: i need compile C++ not C only)
Note that I haven't gotten around to supporting C++ yet. You can try
to build it if you want, but I had deferred it due to other more
important issues, and haven't had a chance to work on it. It might
"just work", you never know ;-)