diff options
Diffstat (limited to 'docs/CommandGuide/lli.html')
-rw-r--r-- | docs/CommandGuide/lli.html | 35 |
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] < filename> +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 |