[llvm-commits] CVS: llvm/docs/GettingStarted.html

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 25 14:39:01 PST 2004


Changes in directory llvm/docs:

GettingStarted.html updated: 1.51 -> 1.52

---
Log message:

Add note about setting up linux systems to directly execute LLVM bytecode files
Fixes PR303: http://llvm.cs.uiuc.edu/PR303 


---
Diffs of the changes:  (+35 -5)

Index: llvm/docs/GettingStarted.html
diff -u llvm/docs/GettingStarted.html:1.51 llvm/docs/GettingStarted.html:1.52
--- llvm/docs/GettingStarted.html:1.51	Fri Mar 12 14:31:37 2004
+++ llvm/docs/GettingStarted.html	Thu Mar 25 14:38:40 2004
@@ -30,6 +30,7 @@
       <li><a href="#config">Local LLVM Configuration</a>
       <li><a href="#compile">Compiling the LLVM Suite Source Code</a>
       <li><a href="#objfiles">The Location of LLVM Object Files</a>
+      <li><a href="#optionalconfig">Optional Configuration Items</a>
     </ol></li>
 
   <li><a href="#layout">Program layout</a>
@@ -49,11 +50,11 @@
 </ul>
 
 <p>By: 
-  <a href="mailto:gshi1 at uiuc.edu">Guochun Shi</a>,
-  <a href="mailto:sabre at nondot.org">Chris Lattner</a>,
   <a href="mailto:criswell at uiuc.edu">John Criswell</a>, 
-  <a href="http://misha.brukman.net">Misha Brukman</a>, and
-  <a href="http://www.cs.uiuc.edu/~vadve">Vikram Adve</a>.</p>
+  <a href="mailto:sabre at nondot.org">Chris Lattner</a>,
+  <a href="http://misha.brukman.net">Misha Brukman</a>, 
+  <a href="http://www.cs.uiuc.edu/~vadve">Vikram Adve</a>, and
+  <a href="mailto:gshi1 at uiuc.edu">Guochun Shi</a>.</p>
 
 
 <!-- *********************************************************************** -->
@@ -765,6 +766,35 @@
 
 </div>
 
+<!-- ======================================================================= -->
+<div class="doc_subsection">
+  <a name="optionalconfig">Optional Configuration Items</a>
+</div>
+
+<div class="doc_text">
+
+<p>
+If you're running on a linux system that supports the "<a
+href="http://www.tat.physik.uni-tuebingen.de/~rguenth/linux/binfmt_misc.html">binfmt_misc</a>"
+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):</p>
+
+<pre>
+   $ 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
+</pre>
+
+<p>
+This allows you to execute LLVM bytecode files directly.  Thanks to Jack
+Cummings for pointing this out!
+</p>
+
+</div>
+
+
 <!-- *********************************************************************** -->
 <div class="doc_section">
   <a name="layout"><b>Program Layout</b></a>
@@ -1170,7 +1200,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2004/03/12 20:31:37 $
+  Last modified: $Date: 2004/03/25 20:38:40 $
 </address>
 
 </body>





More information about the llvm-commits mailing list