LLVM-DIS(1)

NAME πŸ’…

llvm-dis β€” the LLVM disassembler. Like, it takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. Bestie, it's giving translator but for compiler nerds. This page is LLVM-DIS(1) from the LLVM manual, and yes we're doing this.

SYNOPSIS ✨

llvm-dis [options] [filename]

DESCRIPTION πŸ¦‹

okay so llvm-dis is the LLVM disassembler. It takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. No cap.

If filename is omitted or specified as -, llvm-dis reads its input from standard input. Yes, the classic - moment.

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). You can override the choice of output file using the -o option. Main character choice, honestly.

OPTIONS πŸŽ€

  • -f β€” Enable binary output on terminals. Normally, llvm-dis will refuse to write raw bitcode output if the output stream is a terminal. With this option, llvm-dis will write raw bitcode regardless of the output device. It's giving "I know what I'm doing" energy.
  • -help β€” Print a summary of command line options. Tiny help menu, slay.
  • -o filename β€” Specify the output file name. If filename is -, then the output is sent to standard output. Periodt.

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 0 = good vibes, non-zero = something went off.

SEE ALSO πŸ‘€

llvm-as(1) β€” the other half of the bitcode-to-assembly situationship. iykyk.

AUTHOR 🫢

Maintained by the LLVM Team (https://llvm.org/). They're the ones keeping this whole thing iconic.

2003-2023, LLVM Project. Respect the copyright era, bestie.


Cute sign-off πŸ’–: this page comes from LLVM (source), version 15, dated 2023-07-14, manual LLVM-DIS(1). Bye bestie, go disassemble something cute ✨

πŸ“¦ where this page comes from