summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit3c169b6f31dbe400b7aed0ea404bf986a7bc58d7 (patch)
treeeb4133fa5c95316bb069afcc265924d871cd7aff /llvm/docs/CommandGuide/lli.html
parentbd5850db0c16b8abdf101ac3e2f7826b2a99c2e8 (diff)
downloadbcm5719-llvm-3c169b6f31dbe400b7aed0ea404bf986a7bc58d7.tar.gz
bcm5719-llvm-3c169b6f31dbe400b7aed0ea404bf986a7bc58d7.zip
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. llvm-svn: 8741
Diffstat (limited to 'llvm/docs/CommandGuide/lli.html')
-rw-r--r--llvm/docs/CommandGuide/lli.html35
1 files changed, 32 insertions, 3 deletions
diff --git a/llvm/docs/CommandGuide/lli.html b/llvm/docs/CommandGuide/lli.html
index 8fb4370a96c..2b504472be6 100644
--- a/llvm/docs/CommandGuide/lli.html
+++ b/llvm/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
OpenPOWER on IntegriCloud