tldr/pages/common/lli.md

21 lines
442 B
Markdown
Raw Normal View History

2021-10-29 03:34:48 +01:00
# lli
> Directly execute programs from LLVM bitcode.
> More information: <https://www.llvm.org/docs/CommandGuide/lli.html>.
- Execute a bitcode or IR file:
`lli {{path/to/file.ll}}`
2023-05-30 19:37:28 +01:00
- Execute with command-line arguments:
2021-10-29 03:34:48 +01:00
`lli {{path/to/file.ll}} {{argument1 argument2 ...}}`
- Enable all optimizations:
`lli -O3 {{path/to/file.ll}}`
- Load a dynamic library before linking:
`lli --dlopen={{path/to/library.dll}} {{path/to/file.ll}}`