On 24/07/14 03:38, Sandeep K Chaudhary wrote:
> Hi Guys,
> 
> I wish to implement a GCC plugin that can work with avr-gcc. I came to
> realize that the latest avr-gcc or avr-g++ is based off GCC 4.8.2.
> However, the whole GCC plugin APIs were introduced in 4.9.0.
> Therefore, the 'fplugin' option is not present with the latest
> avr-gcc.

Hi Shadeep,

That doesn't seem right to me. I think the plugin mechanism his already
there. For example the MAGEEC plugin (www.mageec.org) works with both
4.8 and 4.9 AVR GCC.

It is possible that official distributions are compiled with it
disabled. What does gcc -v report?

However...

While the interface for initializing a plugin is well defined, plugins
inherently use internal APIs and these are not stable. In the MAGEEC
plugin you'll see a lot of #ifdefs with the GCC minor version numbers.

If you are doing this sort of work, I suggest you just use mainline GCC.
Then you can be sure you are using the latest version.

> Can someone please tell me when we can expect to have the plugin
> support in avr-gcc? Also, is there some way to get around this problem
> i.e. somehow being able to use the plugin option with current avr-gcc?
> 
> It would be a great help if I can get the plugin option to work with avr-gcc.

I believe it is working. Have a look at the code for MAGEEC to see how
we use it. It's on GitHub:

  https://github.com/mageec/mageec

(I demonstrated this at the GNU Tools Cauldron last weekend. The talk
and video should be up in a couple of weeks).

Best wishes,


Jeremy

-- 
Tel:      +44 (1590) 610184
Cell:     +44 (7970) 676050
SkypeID: jeremybennett
Twitter: @jeremypbennett
Email:   jeremy.benn...@embecosm.com
Web:     www.embecosm.com

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to