[Haskell-cafe] Will GHC 6.14 with LLVM use LLVM C compiler to compile external C Libraries

Mathew de Detrich deteego at gmail.com
Thu Sep 9 08:10:49 EDT 2010

Since GHC 6.14 will (hopefully) be use LLVM as a default backend, an idea
has occured to me

Should GHC also use the clang (C/C++->LLVM compiler) on external C library
sources which are used with certain Haskell packages (such as gtk) when LLVM
does become a default backend for GHC. The consensus is that since Clang
will also produce LLVM 'assembler', it can be very easily linked with the
LLVM 'assembler' produced by GHC's LLVM backend, making the process of using
external C sources a lot easier. Parts of Clang required could even
be integrated into GHC (although this may be tricky since its coded in C++).
It should also hopefully make using Haskell packages on windows that use C
sources less painful

Clang could also make using FFI with C++ much easier (for reasons stated

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100909/e99b1312/attachment.html

More information about the Haskell-Cafe mailing list