Changes between Version 15 and Version 16 of Commentary/Compiler/Backends/LLVM/Installing


Ignore:
Timestamp:
Jun 18, 2010 10:11:56 AM (5 years ago)
Author:
dterei
Comment:

Add in using information

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/Backends/LLVM/Installing

    v15 v16  
    22= Installing & Using the LLVM Back-end =
    33
     4== Installing ==
    45The LLVM backend is now included in GHC HEAD. Just grab the darcs HEAD version of GHC and build it. The backend now also supports all modes that GHC can be built in, except perhaps -dynamic which hasn't been tested yet, so you shouldn't need to change your build.mk file either (you used to have disabled an optimisation called tables-next-to-code, but the LLVM backend supports that now).
    56
    67For instructions on building GHC go [http://hackage.haskell.org/trac/ghc/wiki/Building here]
     8
     9== Using ==
     10
     11Once built you can check that you have the LLVM backend GHC will support these extra options:
     12
     13  * ''--info'' - Now will report that it has the llvm backend
     14  * ''-fllvm'' - Compile code using the llvm backend
     15  * ''-ddump-llvm' - Dumps the llvm IR while compiling
     16  * ''-pgm_la'' - The program to use as the llvm assembler
     17  * ''-pgm_lo'' - The program to use as the llvm optimiser
     18  * ''-pgm_lc'' - The program to use as the llvm compiler
     19  * ''-opt_la'' - Extra options to pass to the llvm assembler
     20  * ''-opt_lo'' - Extra options to pass to the llvm optimiser
     21  * ''-opt_lc'' - Extra options to pass to the llvm compiler
     22
    723
    824== Supported Platforms & Correctness ==