From d6a68eb2ca529282ed7630a5434695789dc94ca4 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 29 May 2007 09:24:33 +0000 Subject: [PATCH] Added "doc_class" div tags to code segments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37336 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/FAQ.html | 59 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 16 deletions(-) diff --git a/docs/FAQ.html b/docs/FAQ.html index b67fae3abe5..62a5046c107 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -311,11 +311,20 @@ clean and then make in the directory that fails to build.

For example, if you built LLVM with the command:

-

gmake ENABLE_PROFILING=1 +

+
+% gmake ENABLE_PROFILING=1
+
+

...then you must run the tests with the following commands:

-

cd llvm/test
gmake ENABLE_PROFILING=1

+
+
+% cd llvm/test
+% gmake ENABLE_PROFILING=1
+
+
@@ -354,11 +363,11 @@ build.

If the error is of the form:

- +
 gmake[2]: *** No rule to make target `/path/to/somefile', needed by
 `/path/to/another/file.d'.
Stop. -
+

This may occur anytime files are moved within the CVS repository or removed @@ -471,11 +480,14 @@ find libcrtend.a.

The only way this can happen is if you haven't installed the runtime library. To correct this, do:

+ +
-  % cd llvm/runtime
-  % make clean ; make install-bytecode
+% cd llvm/runtime
+% make clean ; make install-bytecode
 
+

@@ -512,14 +524,20 @@ C++ support for a processor that does not otherwise have a C++ compiler.

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

  2. -
    $ llvm-g++ x.cpp -o program
    +
    +
    +% llvm-g++ x.cpp -o program
    +
    +

    or:

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

    With llvm-gcc3, this will generate program and program.bc. The .bc file is @@ -528,11 +546,19 @@ the LLVM version of the program all linked together.

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

  4. -
    $ llc -march=c program.bc -o program.c
    +
    +
    +% llc -march=c program.bc -o program.c
    +
    +
  5. Finally, compile the c file:

  6. -
    $ cc x.c
    +
    +
    +% cc x.c
    +
    +
@@ -650,12 +676,13 @@ a value that is not defined. You can get these if you do not initialize a variable before you use it. For example, the C function:

- int X() { int i; return i; } +
+int X() { int i; return i; }
+
-

Is compiled to "ret int undef" because "i" never has a value -specified for it. -

+

Is compiled to "ret i32 undef" because "i" never has +a value specified for it.

-- 2.34.1