Cross-compiling Haskell code for ARM via LLVM
Ricardo Wurmus
ricardo.wurmus at gmail.com
Mon Feb 13 02:38:44 CET 2012
Hi,
I'm trying to compile my Haskell project on x86_64 with GHC 7.4.1 and
the LLVM backend for ARM, but LLVM's llc either segfaults (version
3.0) or aborts (2011-07-12 revision with patch as described here[1]).
I've filed a bug in the LLVM bugzilla[2].
I'm passing these arguments to GHC: -Wall -fllvm -optlc=-march=arm
ARM is listed as a Tier 2 platform[3] and I gathered from various
mailing list posts that cross-compiling through LLVM is supposed to
work. Is this really the case?
In case I'm mistaken, is there currently a way to have GHC generate
LLVM bytecode that llc can translate into executables for the ARM
platform?
Best,
Rekado
___
[1]: http://hackage.haskell.org/trac/ghc/wiki/Building/ARMLinuxGnuEABI
[2]: http://llvm.org/bugs/show_bug.cgi?id=11982
[3]: http://hackage.haskell.org/trac/ghc/wiki/Platforms
More information about the Cvs-ghc
mailing list