RE: FW: How to add new target device (MCU)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
收件者: MathEE <math_ee@xxxxxxxxxxxx>
副本: "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>
寄件日期: 2011/11/16 (三) 11:06 PM
主旨: Re: FW:  How to add new target device (MCU)?

MathEE <math_ee@xxxxxxxxxxxx> 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux