LLVM-DIS(1)

πŸ’… LLVM-DIS(1) β€” the llvm-dis manual, bestie edition ✨

okay so you opened the manual for llvm-dis, part of the LLVM fam, and honestly? it's a short one, we love a low-effort icon. let's get into it 🫢


🌸 NAME 🌸

llvm-dis β€” the LLVM disassembler. that's it, that's the name. short, sweet, main character energy πŸ‘‘


✨ SYNOPSIS ✨

llvm-dis [options] [filename]

literally just that. options, then a filename, no drama πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so llvm-dis is the LLVM disassembler, and what it does is take an LLVM bitcode file and turn it into human-readable LLVM assembly language. glow-up translation, basically. machine soup in, readable text out πŸ’–

if you skip filename entirely, or pass it as -, then llvm-dis reads its input from standard input. no filename needed, she'll take it straight from the pipe 🧚

and here's the output tea β˜• β€” if the input is coming from standard input, the output goes to standard output by default. but if the input is a real file, the output gets written to a file named after the input file with a .ll suffix added, and any existing .bc suffix gets removed first. so thing.bc becomes thing.ll, iconic behaviour. you can override the whole output-file situation with the -o option if you're feeling picky πŸ’…


πŸ”₯ OPTIONS πŸ”₯

  • -f β€” enables binary output on terminals. normally llvm-dis will refuse to write raw bitcode output if the output stream is a terminal, like a bouncer at the club 🚫. with this option, llvm-dis will write raw bitcode regardless of the output device. no cap, it just does it.
  • -help β€” prints a summary of command line options. your little cheat sheet, bestie πŸ“
  • -o filename β€” specify the output file name. and if filename is -, then the output is sent to standard output. dash means stdout, always and forever 🫢
⚠️ heads up: that -f thing exists because dumping raw bitcode at a terminal is normally a whole mess. only reach for it when you actually mean it, okay? πŸ’€

🌈 EXIT STATUS 🌈

if llvm-dis succeeds, it exits with 0. slay. otherwise, if an error occurs, it exits with a non-zero value. so like, check your exit codes, that's the vibe check 😭


πŸ‘‘ SEE ALSO πŸ‘‘

  • llvm-as(1) β€” the other half of the duo, go say hi πŸ¦‹

πŸ’œ AUTHOR πŸ’œ

maintained by the LLVM Team (https://llvm.org/). absolute legends, fr fr πŸ™Œ


2003-2025, LLVM Project. periodt.


LLVM β€” LLVM-DIS(1) β€” page 20 β€” dated 2025-09-03 🌸

that's the whole page bestie, thanks for reading, go disassemble something gorgeous πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from