Changes between Version 2 and Version 3 of Building/ARMLinuxGnuEABI


Ignore:
Timestamp:
Aug 10, 2011 1:26:57 PM (4 years ago)
Author:
kgardas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/ARMLinuxGnuEABI

    v2 v3  
    11As of August 10 2011, GHC HEAD supports registerised build on ARM when using LLVM backend. For this to work, you will need to have LLVM HEAD as of July 12 2011 with the patch from here: http://www.gardas.roznovan.cz/llvm/llvm-2011-07-12.patch applied.
     2
     3You can do this this way:
     4{{{
     5$ svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-ghc-arm-2011-07-12
     6$ wget http://www.gardas.roznovan.cz/llvm/llvm-2011-07-12.patch
     7$ cd llvm-ghc-arm-2011-07-12
     8$ svn up -r "{2011-07-12}"
     9$ patch -p1 < ../llvm-2011-07-12.patch
     10}}}
     11
     12for compilation on native ARM Linux system, you will need to use -O1 optimization level as higher levels produces more buggy LLVM. Configuration and compilation of LLVM might be done in this way:
     13
     14{{{
     15$ mkdir obj
     16$ cd obj
     17$ ../llvm-ghc-arm-2011-07-12/configure --enable-optimized
     18$ make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1
     19}}}
     20
     21You don't need to install compiled LLVM, but you will just need to set your PATH to contain llvm-ghc-arm-2011-07-12/Release+Asserts/bin/ path.