[LLVMdev] Compile llvm-gcc fortran backend using mingw

NAKAMURA Takumi geek4civic at gmail.com
Mon Oct 17 18:26:23 PDT 2011


2011/10/18 Albert Graef <Dr.Graef at t-online.de>:

> On 10/17/2011 04:44 PM, Duncan Sands wrote:
>> PS: A more convincing (IMO) argument against dragonegg is that it doesn't
>> work on windows.  That's because the gcc plugin architecture doesn't work
>> on windows.  Takumi has been thinking about this and has been enable to
>> get dragonegg to work on windows anyway using some clever tricks.
>
> Interesting, thanks for the information. Is that already available
> somewhere, or are there any plans to release it along with LLVM 3.0?
>
> I don't use Windows much myself, but some Pure users and many of my
> students do. Pure relies on LLVM-capable compilers for its C/C++/Fortran
> inlining capabilities, so being able to just point Windows users to a
> binary llvm-gcc package to make that work is very convenient. Of course
> we can stick to the latest llvm-gcc 4.2 on Windows for a while, but if
> there's a dragonegg version that works there then I'd certainly like to
> give that a whirl some time.

Not yet. I have to do;

1) Submit my patches to upstream gcc.
2) Let patches applied by distributors (mingw, tdm, and cygwin)

X) Then, I could apply my tweaks :D

GCC is required;

1) cc1*.exe should export (dllexport) available symbols.
2) People could use the distro "--enable-plugins and symbol-exported-cc1.exe"

With my experiments, dragonegg can run on cygwin.
Cygwin has its dlopen and dlsym.
For mingw, I have to implement their emulator. (It would not be hard)
Seek llvmdev with "dragonegg cygwin Takumi" ;)

Unfortunately, I have little time to work on. Please be patient.

Thank you, ...Takumi




More information about the llvm-dev mailing list