LLVM-DIS(1)
π LLVM-DIS(1) β bestie's guide to the LLVM disassembler
okay so this is llvm-dis, the LLVM disassembler β¨ (yes, the page header literally says LLVM-DIS(1) β that's how you know it's official). Sit down, grab a strawberry π, we're turning robot-brain bitcode back into something a human can actually read.
πΈ SYNOPSIS πΈ
llvm-dis [options] [filename]
π¦ DESCRIPTION π¦
okay so the llvm-dis command is the LLVM disassembler. it takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. that's it. that's the vibe check and it passed π
if filename is omitted or specified as -, llvm-dis reads its input from standard input. lowkey convenient.
and here's the auto-pilot part: if the input is being read from standard input, then llvm-dis will send its output to standard output by default. otherwise, the output will be written to a file named after the input file, with a .ll suffix added (any existing .bc suffix will first be removed β yes, it does the little cleanup for you, icon behavior β¨). you can override the choice of output file using the -o option.
no cap, this is the whole tool: bitcode in, assembly out, filenames handled for you.
π OPTIONS π
-fβ enable binary output on terminals. normally,llvm-diswill refuse to write raw bitcode output if the output stream is a terminal. with this option,llvm-diswill write raw bitcode regardless of the output device. it's giving "I know what I'm doing" main character energy π₯-helpβ print a summary of command line options. the little cheat sheet, the group-chat recap, the iykyk π-o filenameβ specify the output file name. iffilenameis-, then the output is sent to standard output. simple as that π«Ά
π EXIT STATUS π
if llvm-dis succeeds, it will exit with 0. otherwise, if an error occurs, it will exit with a non-zero value. so like... 0 means slay, non-zero means something went wrong and you should go read the error π
π SEE ALSO π
llvm-as(1)β the other half of the duo, the reversible bestie π
π AUTHOR π
maintained by the LLVM Team (https://llvm.org/). they're literally keeping the lights on, respect π«Ά
β COPYRIGHT β
2003-2023, LLVM Project
and that's the whole page, bestie π§ β signed off from the LLVM source, dated 2023-01-14, and yes it's page 15 of the LLVM-DIS(1) manual. periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms