Cross-compiling Haskell code for ARM via LLVM
ricardo.wurmus at gmail.com
Mon Feb 13 02:38:44 CET 2012
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).
I've filed a bug in the LLVM bugzilla.
I'm passing these arguments to GHC: -Wall -fllvm -optlc=-march=arm
ARM is listed as a Tier 2 platform 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
More information about the Cvs-ghc