From 998c0674be87dcc3f7da6399230daf11cf5ca79a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Mar 2004 20:38:40 +0000 Subject: [PATCH] Add note about setting up linux systems to directly execute LLVM bytecode files Fixes PR303 llvm-svn: 12516 --- llvm/docs/GettingStarted.html | 38 +++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/llvm/docs/GettingStarted.html b/llvm/docs/GettingStarted.html index 2e04c9ea650c..6490c0cf280f 100644 --- a/llvm/docs/GettingStarted.html +++ b/llvm/docs/GettingStarted.html @@ -30,6 +30,7 @@
  • Local LLVM Configuration
  • Compiling the LLVM Suite Source Code
  • The Location of LLVM Object Files +
  • Optional Configuration Items
  • Program layout @@ -49,11 +50,11 @@

    By: - Guochun Shi, - Chris Lattner, John Criswell, - Misha Brukman, and - Vikram Adve.

    + Chris Lattner, + Misha Brukman, + Vikram Adve, and + Guochun Shi.

    @@ -765,6 +766,35 @@ 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
    +   $ chmod u+x hello.bc                (if needed)
    +   $ ./hello.bc
    +
    + +

    +This allows you to execute LLVM bytecode files directly. Thanks to Jack +Cummings for pointing this out! +

    + +
    + +