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)?
Thanks a lot for Ian's reply!
Now I'm starting to trace files in gcc/config/avr.
But I can't find "avr-mcus.def" in the folder, neither in the whole gcc-4.6.2 source code.
I googled and found that it's some kind of patch.
So, maybe I can ignore "avr-mcus.def"?
----- ååää ----
åäèï Ian Lance Taylor <iant@google.com>
æäèï MathEE <math_ee@yahoo.com.tw>
åæï "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
åäææï 2011/11/16 (ä) 11:06 PM
äæï Re: FW: How to add new target device (MCU)?
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