Hi Joseph,
thanks a lot for your answer.

Sorry but it is not clear to me if the point is that the plugin development 
must include some windows-related code that I'm actually missing or if the 
problem is on the GCC side, that is inside GCC the code section that loads the 
dll, or part of it, is missing and it is still to be implemented.

Thanks in advance
Davide


> -----Messaggio originale-----
> Da: Joseph Myers [mailto:jos...@codesourcery.com]
> Inviato: lunedì 27 marzo 2017 17:57
> A: David Malcolm
> Cc: Davide Piombo; 'gcc@gcc.gnu.org'
> Oggetto: Re: Plugin development under windows
> 
> On Mon, 27 Mar 2017, David Malcolm wrote:
> 
> > > Substantially I'm writing just to ask:
> > > Can GCC plugins run on a windows build of GCC compiler (MinGW) ?
> >
> > I suspect the answer is "you're the first person to try this in a
> > while; some things may need fixing" - but that's a guess :)
> 
> If it's Windows host, the answer is: plugin support relies on dlopen,
> and on -rdynamic for plugins to access symbols from cc1/cc1plus.  No
> doubt it would be possible to add Windows host support, but it would
> require someone with a thorough understanding of the Windows DLL model
> and how it differs from ELF shared libraries to come up with and
> implement an appropriate design for Windows-host plugins in GCC.
> 
> --
> Joseph S. Myers
> jos...@codesourcery.com

Reply via email to