From a553f62738962fd1556171bae43bef9c082639be Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Thu, 25 Mar 2004 20:38:40 +0000
Subject: Add note about setting up linux systems to directly execute LLVM
bytecode files Fixes PR303
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12516 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/GettingStarted.html | 38 ++++++++++++++++++++++++++++++++++----
1 file changed, 34 insertions(+), 4 deletions(-)
(limited to 'docs/GettingStarted.html')
diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html
index 2e04c9e..6490c0c 100644
--- a/docs/GettingStarted.html
+++ b/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!
+
+
+
+
+