← 返回命令列表

Linux command

llvm-dis 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Disassemble bitcode to LLVM IR

llvm-dis [file.bc]

Output to specific file

llvm-dis [file.bc] -o [output.ll]

Disassemble from stdin to stdout

llvm-dis -o - < [file.bc]

Disassemble and show timing for each pass

llvm-dis --time-passes [file.bc]

Show version

llvm-dis --version

说明

llvm-dis is the LLVM disassembler. It converts LLVM bitcode (.bc) files to human-readable LLVM assembly language (.ll) format. If no filename is given or the filename is -, it reads from stdin. Useful for inspecting compiled code and debugging LLVM optimization passes.

参数

-o _file_
Output file name. If omitted, input filename with .ll extension is used.
-f, --force
Enable binary output on terminals and overwrite existing output files.
--show-annotations
Show annotations in output.
--disable-output
Discard output (useful with --time-passes for benchmarking).
--time-passes
Time each pass during disassembly.
--help
Display available options.
--version
Display LLVM version.

FAQ

What is the llvm-dis command used for?

llvm-dis is the LLVM disassembler. It converts LLVM bitcode (.bc) files to human-readable LLVM assembly language (.ll) format. If no filename is given or the filename is -, it reads from stdin. Useful for inspecting compiled code and debugging LLVM optimization passes.

How do I run a basic llvm-dis example?

Run `llvm-dis [file.bc]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _file_ do in llvm-dis?

Output file name. If omitted, input filename with .ll extension is used.