diff --git a/docs/FAQ.html b/docs/FAQ.html index 337866cd9dd..ad97be16b23 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -632,22 +632,22 @@ Stop.

Use commands like this:

    -
  1. Compile your program as normal with llvm-g++:

    +
  2. Compile your program with llvm-g++:

    -% llvm-g++ x.cpp -o program
    +% llvm-g++ -emit-llvm x.cpp -o program.bc -c
     

    or:

    -% llvm-g++ a.cpp -c
    -% llvm-g++ b.cpp -c
    -% llvm-g++ a.o b.o -o program
    +% llvm-g++ a.cpp -c -emit-llvm
    +% llvm-g++ b.cpp -c -emit-llvm
    +% llvm-ld a.o b.o -o program
     
    -

    With llvm-gcc3, this will generate program and program.bc. The .bc - file is the LLVM version of the program all linked together.

  3. +

    This will generate program and program.bc. The .bc + file is the LLVM version of the program all linked together.

  4. Convert the LLVM code to C code, using the LLC tool with the C backend: