From 9106ecae681de42923de816115cc968d985e6b8d Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 3 Feb 2005 22:25:23 +0000 Subject: [PATCH] * Fix broken link to directions to get llvm, llvm-gcc, and llvm-test from CVS * Remove duplicated CVS directions and refer reader to the CVS section * Clean up directions to be brief git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20023 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/GettingStarted.html | 52 ++++++++++++---------------------------- 1 file changed, 15 insertions(+), 37 deletions(-) diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html index e5c981206ee..40fdf4a08fc 100644 --- a/docs/GettingStarted.html +++ b/docs/GettingStarted.html @@ -111,7 +111,7 @@ and performance.
  • Read the documentation.
  • Read the documentation.
  • Remember that you were warned twice about reading the documentation.
  • -
  • Install the GCC front end: +
  • Install the GCC front end if you intend to compile C or C++:
    1. cd where-you-want-the-C-front-end-to-live
    2. gunzip --stdout cfrontend.platform.tar.gz | tar -xvf - @@ -121,63 +121,39 @@ and performance.
    3. Add the cfrontend's "bin" directory to your PATH variable
  • -
  • Get the Source Code +
  • Get the LLVM Source Code
  • -
  • Get the Test Suite Source Code (optional) +
  • [Optional] Get the Test Suite Source Code
  • Configure the LLVM Build Environment
      -
    1. Change directory to where you want to store the LLVM object - files and run configure to configure the Makefiles and - header files for the default platform. Useful options include: +
    2. cd where-you-want-to-build-llvm
    3. +
    4. /path/to/llvm/configure [options]
      + Some common options: +
      • --prefix=directory

        Specify for directory the full pathname of where you - want the LLVM tools and libraries to be installed.

      • + want the LLVM tools and libraries to be installed (default + /usr/local).

      • --with-llvmgccdir=directory

        Optionally, specify for directory the full pathname of the C/C++ FrontEnd installation to use with this LLVM configuration. If @@ -1003,19 +979,21 @@ named after the build type:

        -If you're running on a linux system that supports the " binfmt_misc" module, and you have root access on the system, you can set your system up to execute LLVM bytecode files directly. To do this, use commands like this (the first command may not be required if you are already using the module):

        +
            $ mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
        -   $ echo ':llvm:M::llvm::/path/to/lli:' > /proc/sys/fs/binfmt_misc/register
        +   $ echo ':llvm:M::llvm::/path/to/lli:' > /proc/sys/fs/binfmt_misc/register
            $ chmod u+x hello.bc                (if needed)
            $ ./hello.bc
         
        +

        This allows you to execute LLVM bytecode files directly. Thanks to Jack -- 2.34.1