[vmkit-commits] [vmkit] r91328 - in /vmkit/trunk/www: UsersManual.html menu.html.incl use_aot.html

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Dec 14 13:18:35 PST 2009


Author: geoffray
Date: Mon Dec 14 15:18:34 2009
New Revision: 91328

URL: http://llvm.org/viewvc/llvm-project?rev=91328&view=rev
Log:
Document AOT.


Added:
    vmkit/trunk/www/UsersManual.html
    vmkit/trunk/www/use_aot.html
Modified:
    vmkit/trunk/www/menu.html.incl

Added: vmkit/trunk/www/UsersManual.html
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/www/UsersManual.html?rev=91328&view=auto

==============================================================================
--- vmkit/trunk/www/UsersManual.html (added)
+++ vmkit/trunk/www/UsersManual.html Mon Dec 14 15:18:34 2009
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+          "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  <title>VMKit - Getting Started</title>
+  <link type="text/css" rel="stylesheet" href="menu.css" />
+  <link type="text/css" rel="stylesheet" href="content.css" />
+</head>
+<body>
+
+<!--#include virtual="menu.html.incl"-->
+
+<div id="content">
+
+<h1>VMKit User's Manual</h1>
+
+<ul>
+  <li><a href="/use_aot.html">Java Ahead of Time (AOT) Compilation</a></li>
+</li>
+

Modified: vmkit/trunk/www/menu.html.incl
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/www/menu.html.incl?rev=91328&r1=91327&r2=91328&view=diff

==============================================================================
--- vmkit/trunk/www/menu.html.incl (original)
+++ vmkit/trunk/www/menu.html.incl Mon Dec 14 15:18:34 2009
@@ -8,6 +8,7 @@
     <a href="/index.html">About</a>
     <a href="/get_started.html">Get Started</a>
     <a href="/get_involved.html">Get Involved</a>
+    <a href="/UsersManual.html">Users Manual</a>
     <a href="/OpenProjects.html">Open Projects</a>
     <a href="/pubs.html">Publications</a>
     <a href="/releases/index.html">Releases</a>

Added: vmkit/trunk/www/use_aot.html
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/www/use_aot.html?rev=91328&view=auto

==============================================================================
--- vmkit/trunk/www/use_aot.html (added)
+++ vmkit/trunk/www/use_aot.html Mon Dec 14 15:18:34 2009
@@ -0,0 +1,61 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+          "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+  <title>VMKit - Getting Started</title>
+  <link type="text/css" rel="stylesheet" href="menu.css" />
+  <link type="text/css" rel="stylesheet" href="content.css" />
+</head>
+<body>
+
+<!--#include virtual="menu.html.incl"-->
+
+<div id="content">
+
+<h1>Getting Started: Java Ahead of Time compilation with VMKit</h1>
+
+
+<p>This page gives you the instructions on how to use the Java ahead of time
+compiler of VMKit.</p>
+
+
+<ol>
+  <li><a href="/get_started.html">Checkout
+   and build VMKit</a> from SVN head.</li>
+
+ <li>Compile into a dynamic library the core Java libs (e.g. GNU Classpath):
+ </li>
+
+  <ul>
+    <li><tt>cd tools/vmjc/libvmjc</tt></li>
+    <li><tt>make ENABLE_OPTIMIZED=1 REQUIRES_FRAME_POINTER=1
+      (go get coffee)</tt></li>
+  </ul>
+  
+  <li>Update PATH to include LLVM and VMKit binaries (replace *_OBJ with your
+      directory):</li>
+   <ul>
+     <li><tt>export PATH=$(LLVM_OBJ)/Release/bin:$(VMKIT_OBJ)/Release/bin
+     </tt></li>
+   </ul>
+   
+   <li>Update LD_LIBRARY_PATH to include the dynamic library previously
+       compiled (replace VMKIT_OBJ with your directory):</li>
+   <ul>
+     <li><tt>export LD_LIBRARY_PATH=$(VMKIT_OBJ)/Release/lib
+     </tt></li>
+   </ul>
+  
+   <li>Use the <tt>llcj</tt> tool on a class or a jar file:</li>
+   <ul>
+     <li><tt>llcj -S Foo.class (emit bytecode)</tt></li>
+     <li><tt>llcj --main=Foo Foo.class (generate an executable)</tt></li>
+     <li><tt>llcj -c Foo.class (generate an object file)</tt></li>
+   </ul>
+
+</ol>
+
+</div>
+</body>
+</html>





More information about the vmkit-commits mailing list