avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] GCC plugin for avr-gcc


From: Jeremy Bennett
Subject: Re: [avr-gcc-list] GCC plugin for avr-gcc
Date: Thu, 24 Jul 2014 08:35:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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:   address@hidden
Web:     www.embecosm.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]