LLVM-DIS(1)

πŸ’… LLVM-DIS(1) β€” the LLVM disassembler, bestie edition

okay so bestie, you know how LLVM has a whole little family of tools? This is llvm-dis, from the LLVM manual page squad. Think of me as your disassembler tour guide, except I actually know what I'm talking about. ✨


🌸 NAME 🌸

llvm-dis β€” the LLVM disassembler. that's it, that's the name, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

llvm-dis [options] [filename]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the llvm-dis command is the LLVM disassembler, periodt. It takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. literally a glow-up from unreadable bytes to something your eyes can actually handle. πŸ’–

If filename is omitted or specified as -, then llvm-dis reads its input from standard input. love that for us, very flexible.

If the input is being read from standard input, then llvm-dis will send its output to standard output by default. Otherwise β€” and this is the part people forget β€” the output will be written to a file named after the input file, with a .ll suffix added. And yeah, any existing .bc suffix will first be removed before that happens. iconic behaviour honestly. 🫢

You can override the choice of output file using the -o option. so if you don't like the default vibe, just say so.

✨ 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, okurrr. πŸ’…
  • -help β€” Print a summary of command line options. the classic "wait what were the flags again" save. πŸŽ€
  • -o filename β€” Specify the output file name. If filename is -, then the output is sent to standard output. put filename right after it, that's the whole assignment. πŸ¦‹

⭐ EXIT STATUS ⭐

If llvm-dis succeeds, it will exit with 0. yay, we ate. πŸ“

Otherwise, if an error occurs, it will exit with a non-zero value. 😭 not the error era but ok, at least it tells you.


πŸ”₯ SEE ALSO πŸ”₯

  • llvm-as(1) <llvm-as.html> β€” the other half of the duo, go say hi.

πŸ‘‘ Author πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). they keep it running, we keep it cute. πŸ’œ


2003-2026, LLVM Project


and that's the whole page bestie, go disassemble something iconic. πŸ’–βœ¨

β€” with love from the LLVM Project, source/version 15, dated 2026-09-09, page LLVM-DIS(1). slay. πŸŽ€πŸ’…

πŸ“¦ where this page comes from