diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html index 9f6ef59b7fd..6587987060a 100644 --- a/docs/GettingStarted.html +++ b/docs/GettingStarted.html @@ -31,6 +31,7 @@
  • Install the GCC Front End
  • Local LLVM Configuration
  • Compiling the LLVM Suite Source Code +
  • Compiling LLVM As A Cross-Compiler
  • The Location of LLVM Object Files
  • Optional Configuration Items
  • @@ -986,6 +987,46 @@ that directory that is out of date.

    + +
    + Compiling LLVM As A Cross-compiler +
    + +
    +

    LLVM can be built as a cross-compiler, however some additional steps are + required.1 To build a cross-compiler, use + these instructions:

    +
      +
    1. Configure and build LLVM Suite as a native compiler. You will need + just TableGen from that build. +
        +
      • If you have $LLVM_OBJ_ROOT=$LLVM_SRC_ROOT just execute + make -C utils/TableGen after configuring.
      • +
      • Otherwise you will need to monitor building process and terminate + it just after TableGen was built.
      • +
      +
    2. +
    3. Copy the TableGen binary to somewhere safe (out of your build tree). +
    4. +
    5. Configure LLVM to build as a cross-compiler. To do this, supply the + configure script with --build and --host options that + are different. The values of these options must be legal target triples and + should specify a processor for which LLVM supports code generation.
    6. +
    7. Put the saved TableGen executable into the + into $LLVM_OBJ_ROOT/{BUILD_TYPE}/bin directory (e.g. into + .../Release/bin for a Release build).
    8. +
    9. Build LLVM as usual.
    10. +
    +

    Notes:

    +
    +
      +
    1. Cross-compiling was tested only with Linux as + build platform and Windows as host using mingw32 cross-compiler. Other + combinations have not been tested.
    2. +
    +
    +
    +
    The Location of LLVM Object Files