This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: FW: How to add new target device (MCU)?
- From: Ian Lance Taylor <iant at google dot com>
- To: MathEE <math_ee at yahoo dot com dot tw>
- Cc: "gcc-help\ at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 16 Nov 2011 07:06:17 -0800
- Subject: Re: FW: How to add new target device (MCU)?
- References: <1321438538.89428.YahooMailNeo@web161801.mail.bf1.yahoo.com> <1321438816.83212.YahooMailNeo@web161802.mail.bf1.yahoo.com> <1321438918.92816.YahooMailNeo@web161802.mail.bf1.yahoo.com>
MathEE <math_ee@yahoo.com.tw> writes:
> I'm trying to find out a way to add a new target MCU (say, T123) such that I can compile C and/or Assembly into instruction set of this T123.
> Then, just like "-mmcu=attiny24", I can use "-mmcu=T123" to get the Hex/Bin for T123.
>
> Or shortly, how to support a new target device?
>
> Of course, I have all information needed about this T123.
> But I have no idea what/how to do?
> Could somebody please be so kind to help/teach me??
Look at the files in gcc/config/avr. Specifically, avr-mcus.def and
avr-devices.c.
Ian