aboutsummaryrefslogtreecommitdiff
path: root/docs/CommandGuide/lli.html
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-29 20:10:08 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-29 20:10:08 +0000
commit511a4917c452c53647d85bfaf1db6d3f5fb6ef3f (patch)
treeb97beaaccca0e2279ffa3307721ec7b191f8a95d /docs/CommandGuide/lli.html
parenta496777cc5a5cac3ab5cec3b073bec2249fcb3fc (diff)
Added information on input and output filenames.
Added periods to the end of sentence fragments describing options. Added information to llc about which target architecture is selected for assembly language code generation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide/lli.html')
-rw-r--r--docs/CommandGuide/lli.html35
1 files changed, 32 insertions, 3 deletions
diff --git a/docs/CommandGuide/lli.html b/docs/CommandGuide/lli.html
index 8fb4370a96..2b504472be 100644
--- a/docs/CommandGuide/lli.html
+++ b/docs/CommandGuide/lli.html
@@ -20,14 +20,43 @@ lli
SYNOPSIS
</h3>
-lli [options] &lt; filename&gt;
+lli [options] [filename] [args ...]
<h3>
DESCRIPTION
</h3>
The lli command is the LLVM interpreter. It takes a program in LLVM bytecode
-format and executes it, either using an interpreter or a Just In Time (JIT)
-compiler.
+format and executes it using an interpreter or a Just In Time (JIT) compiler.
+<p>
+
+If filename is not specified, then lli reads its input from standard input.
+<p>
+The optional arguments specified on the command line are passed to the executed
+program as arguments.
+<p>
+
+<h3>
+MAIN FUNCTION
+</h3>
+
+The main() function of the bytecode program is where execution starts. It
+is passed three arguments:
+
+<ul>
+ <li>
+ int argc - The number of command line arguments.
+ <p>
+
+ <li>
+ char ** argv - The arguments to the program.
+ <p>
+
+ <li>
+ char ** envp - An array of environment variables used by the program.
+</ul>
+
+The first argument to the program is the name of the executed bytecode file
+(with the .bc suffix removed).
<h3>
OPTIONS