blob: 2b504472be6c02745494fded351eff322e2e326f [file] [log] [blame]
John Criswellecf32e52003-09-11 19:58:03 +00001<html>
2<title>
Chris Lattneree43b692003-09-25 19:50:05 +00003LLVM: lli tool
John Criswellecf32e52003-09-11 19:58:03 +00004</title>
5
6<body>
7
8<center>
Chris Lattneree43b692003-09-25 19:50:05 +00009<h1>LLVM: lli tool</h1>
John Criswellecf32e52003-09-11 19:58:03 +000010</center>
11<HR>
12
13<h3>
14NAME
15</h3>
16
17lli
18
19<h3>
20SYNOPSIS
21</h3>
22
John Criswell511a4912003-09-29 20:10:08 +000023lli [options] [filename] [args ...]
John Criswellecf32e52003-09-11 19:58:03 +000024<h3>
25DESCRIPTION
26</h3>
27
28The lli command is the LLVM interpreter. It takes a program in LLVM bytecode
John Criswell511a4912003-09-29 20:10:08 +000029format and executes it using an interpreter or a Just In Time (JIT) compiler.
30<p>
31
32If filename is not specified, then lli reads its input from standard input.
33<p>
34The optional arguments specified on the command line are passed to the executed
35program as arguments.
36<p>
37
38<h3>
39MAIN FUNCTION
40</h3>
41
42The main() function of the bytecode program is where execution starts. It
43is passed three arguments:
44
45<ul>
46 <li>
47 int argc - The number of command line arguments.
48 <p>
49
50 <li>
51 char ** argv - The arguments to the program.
52 <p>
53
54 <li>
55 char ** envp - An array of environment variables used by the program.
56</ul>
57
58The first argument to the program is the name of the executed bytecode file
59(with the .bc suffix removed).
John Criswellecf32e52003-09-11 19:58:03 +000060
61<h3>
62OPTIONS
63</h3>
64
65<ul>
66 <li> -array-checks
67 <br>
68 Enable array bound checks.
69 <p>
70
71 <li> -help
72 <br>
73 Print a summary of command line options.
74 <p>
75
76 <li> -disable-fp-elim
77 <br>
78 Disable frame pointer elimination optimization.
79 <p>
80
81 <li> -stats
82 <br>
83 Print statistics.
84 <p>
85
86 <li> -time-passes
87 <br>
88 Record the amount of time needed for each pass and print it to standard
89 error.
90 <p>
91</ul>
92
93<h3>
94EXIT STATUS
95</h3>
96
97If lli succeeds, it will exit with 0. Otherwise, if an error occurs, it
98will exit with a non-zero value.
99
100<h3>
101SEE ALSO
102</h3>
103llvm-dis
104
105<HR>
John Criswell32003302003-09-11 20:23:52 +0000106<a href="http://llvm.cs.uiuc.edu">LLVM Team</a>
John Criswellecf32e52003-09-11 19:58:03 +0000107</body>
108</html>
109