John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <title> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 3 | LLVM: lli tool |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 4 | </title> |
| 5 | |
| 6 | <body> |
| 7 | |
| 8 | <center> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 9 | <h1>LLVM: lli tool</h1> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 10 | </center> |
| 11 | <HR> |
| 12 | |
| 13 | <h3> |
| 14 | NAME |
| 15 | </h3> |
| 16 | |
| 17 | lli |
| 18 | |
| 19 | <h3> |
| 20 | SYNOPSIS |
| 21 | </h3> |
| 22 | |
John Criswell | 511a491 | 2003-09-29 20:10:08 +0000 | [diff] [blame^] | 23 | lli [options] [filename] [args ...] |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 24 | <h3> |
| 25 | DESCRIPTION |
| 26 | </h3> |
| 27 | |
| 28 | The lli command is the LLVM interpreter. It takes a program in LLVM bytecode |
John Criswell | 511a491 | 2003-09-29 20:10:08 +0000 | [diff] [blame^] | 29 | format and executes it using an interpreter or a Just In Time (JIT) compiler. |
| 30 | <p> |
| 31 | |
| 32 | If filename is not specified, then lli reads its input from standard input. |
| 33 | <p> |
| 34 | The optional arguments specified on the command line are passed to the executed |
| 35 | program as arguments. |
| 36 | <p> |
| 37 | |
| 38 | <h3> |
| 39 | MAIN FUNCTION |
| 40 | </h3> |
| 41 | |
| 42 | The main() function of the bytecode program is where execution starts. It |
| 43 | is 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 | |
| 58 | The first argument to the program is the name of the executed bytecode file |
| 59 | (with the .bc suffix removed). |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 60 | |
| 61 | <h3> |
| 62 | OPTIONS |
| 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> |
| 94 | EXIT STATUS |
| 95 | </h3> |
| 96 | |
| 97 | If lli succeeds, it will exit with 0. Otherwise, if an error occurs, it |
| 98 | will exit with a non-zero value. |
| 99 | |
| 100 | <h3> |
| 101 | SEE ALSO |
| 102 | </h3> |
| 103 | llvm-dis |
| 104 | |
| 105 | <HR> |
John Criswell | 3200330 | 2003-09-11 20:23:52 +0000 | [diff] [blame] | 106 | <a href="http://llvm.cs.uiuc.edu">LLVM Team</a> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 107 | </body> |
| 108 | </html> |
| 109 | |