Changes between Version 15 and Version 16 of Commentary/Compiler/Backends/LLVM/Installing
- Timestamp:
- 06/18/10 03:11:56 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Compiler/Backends/LLVM/Installing
v15 v16 2 2 = Installing & Using the LLVM Back-end = 3 3 4 == Installing == 4 5 The 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). 5 6 6 7 For instructions on building GHC go [http://hackage.haskell.org/trac/ghc/wiki/Building here] 8 9 == Using == 10 11 Once 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 7 23 8 24 == Supported Platforms & Correctness ==
